mirror of
https://github.com/rust-lang/rust
synced 2024-10-04 15:50:51 +00:00
Tweak env docs a bit
The "optionally" stuff just makes things confusing.
This commit is contained in:
parent
ee88e04e77
commit
4af19537b2
|
@ -416,7 +416,7 @@ impl Error for JoinPathsError {
|
||||||
fn description(&self) -> &str { self.inner.description() }
|
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
|
/// # Unix
|
||||||
///
|
///
|
||||||
|
@ -480,8 +480,8 @@ pub fn temp_dir() -> PathBuf {
|
||||||
os_imp::temp_dir()
|
os_imp::temp_dir()
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Optionally returns the filesystem path to the current executable which is
|
/// Returns the filesystem path to the current executable which is running but
|
||||||
/// running but with the executable name.
|
/// with the executable name.
|
||||||
///
|
///
|
||||||
/// The path returned is not necessarily a "real path" to the executable as
|
/// The path returned is not necessarily a "real path" to the executable as
|
||||||
/// there may be intermediate symlinks.
|
/// there may be intermediate symlinks.
|
||||||
|
|
Loading…
Reference in a new issue