Skip to content

Commit e543815

Browse files
committed
Auto merge of #29690 - tbu-:pr_doc_env_home_dir, r=Manishearth
2 parents f5633df + e5100a5 commit e543815

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/libstd/env.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,9 @@ impl Error for JoinPathsError {
421421
/// # Unix
422422
///
423423
/// Returns the value of the 'HOME' environment variable if it is set
424-
/// and not equal to the empty string.
424+
/// and not equal to the empty string. Otherwise, it tries to determine the
425+
/// home directory by invoking the `getpwuid_r` function on the UID of the
426+
/// current user.
425427
///
426428
/// # Windows
427429
///

0 commit comments

Comments
 (0)