Skip to content

Commit 1a2eaff

Browse files
committed
Auto merge of rust-lang#29487 - sfackler:current-exe-docs, r=steveklabnik
The "optionally" stuff just makes things confusing. r? @steveklabnik
2 parents 57a0df6 + 4af1953 commit 1a2eaff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/libstd/env.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ impl Error for JoinPathsError {
416416
fn description(&self) -> &str { self.inner.description() }
417417
}
418418

419-
/// Optionally returns the path to the current user's home directory if known.
419+
/// Returns the path to the current user's home directory if known.
420420
///
421421
/// # Unix
422422
///
@@ -480,8 +480,8 @@ pub fn temp_dir() -> PathBuf {
480480
os_imp::temp_dir()
481481
}
482482

483-
/// Optionally returns the filesystem path to the current executable which is
484-
/// running but with the executable name.
483+
/// Returns the filesystem path to the current executable which is running but
484+
/// with the executable name.
485485
///
486486
/// The path returned is not necessarily a "real path" to the executable as
487487
/// there may be intermediate symlinks.

0 commit comments

Comments
 (0)