about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-11-08 18:37:18 +0000
committerbors <bors@rust-lang.org>2015-11-08 18:37:18 +0000
commite543815c85d4ec3ad4df30f4f9eb7933378ad47f (patch)
tree69c7ab3975f1eb07812165bc9cae2f59f64a47d1 /src/libstd
parentf5633df9133cddffbbbf8942841db83810aec835 (diff)
parente5100a58021a612d04304425bff5d8a7ee4a5a94 (diff)
downloadrust-e543815c85d4ec3ad4df30f4f9eb7933378ad47f.tar.gz
rust-e543815c85d4ec3ad4df30f4f9eb7933378ad47f.zip
Auto merge of #29690 - tbu-:pr_doc_env_home_dir, r=Manishearth
Diffstat (limited to 'src/libstd')
-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
 ///