about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libstd/env.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libstd/env.rs b/src/libstd/env.rs
index c572f9fb36b..b81b2a71ad6 100644
--- a/src/libstd/env.rs
+++ b/src/libstd/env.rs
@@ -421,7 +421,9 @@ impl Error for JoinPathsError {
 /// # Unix
 ///
 /// Returns the value of the 'HOME' environment variable if it is set
-/// and not equal to the empty string.
+/// and not equal to the empty string. Otherwise, it tries to determine the
+/// home directory by invoking the `getpwuid_r` function on the UID of the
+/// current user.
 ///
 /// # Windows
 ///