From e5100a58021a612d04304425bff5d8a7ee4a5a94 Mon Sep 17 00:00:00 2001 From: Tobias Bucher Date: Sun, 8 Nov 2015 15:34:16 +0000 Subject: [PATCH] Spell out the fallback of `std::env::home_dir` on POSIX --- src/libstd/env.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libstd/env.rs b/src/libstd/env.rs index c572f9fb36b67..b81b2a71ad654 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 ///