Skip to content

Commit a5a5342

Browse files
committed
Revise obtain_envlessly() doc comment for clarity
1 parent 99a8eb3 commit a5a5342

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

gix-path/src/env/git.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -207,12 +207,12 @@ mod tests {
207207
/// The idea here is to obtain this information, which the `alternative_locations()` unit
208208
/// test uses to learn the expected alternative locations, without duplicating *any* of the
209209
/// approach used for `ALTERNATIVE_LOCATIONS`, so it can be used to test that. The approach
210-
/// here is also be more reliable than using environment variables, but it is a bit more
210+
/// here is also more reliable than using environment variables, but it is a bit more
211211
/// complex, and it requires either additional dependencies or the use of unsafe code.
212212
///
213-
/// This obtains `pf_current` and `pf_x86` by the [known folders][known-folders] system,
214-
/// and `maybe_pf_64bit` from the registry since the corresponding known folder is not
215-
/// available to 32-bit processes, per the [KNOWNFOLDDERID][knownfolderid] documentation.
213+
/// This gets `pf_current` and `pf_x86` by the [known folders][known-folders] system. But
214+
/// it gets `maybe_pf_64bit` from the registry, as the corresponding known folder is not
215+
/// available to 32-bit processes. See the [`KNOWNFOLDDERID`][knownfolderid] documentation.
216216
///
217217
/// If in the future the implementation of `ALTERNATIVE_LOCATIONS` uses these techniques,
218218
/// then this function can be changed to use environment variables and renamed accordingly.

0 commit comments

Comments
 (0)