From 4af19537b2d27397c3481ad52cca752843e5928c Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Fri, 30 Oct 2015 22:13:32 -0700 Subject: [PATCH] Tweak env docs a bit The "optionally" stuff just makes things confusing. --- src/libstd/env.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libstd/env.rs b/src/libstd/env.rs index 11eaeafec8fc3..6ed9b85a617f8 100644 --- a/src/libstd/env.rs +++ b/src/libstd/env.rs @@ -416,7 +416,7 @@ impl Error for JoinPathsError { fn description(&self) -> &str { self.inner.description() } } -/// Optionally returns the path to the current user's home directory if known. +/// Returns the path to the current user's home directory if known. /// /// # Unix /// @@ -480,8 +480,8 @@ pub fn temp_dir() -> PathBuf { os_imp::temp_dir() } -/// Optionally returns the filesystem path to the current executable which is -/// running but with the executable name. +/// Returns the filesystem path to the current executable which is running but +/// with the executable name. /// /// The path returned is not necessarily a "real path" to the executable as /// there may be intermediate symlinks.