Add uncontroversial syscall doc aliases to std docs
This commit is contained in:
parent
6f726205a1
commit
6be93ccbee
3 changed files with 32 additions and 3 deletions
|
@ -78,7 +78,7 @@ pub fn current_dir() -> io::Result<PathBuf> {
|
|||
/// assert!(env::set_current_dir(&root).is_ok());
|
||||
/// println!("Successfully changed working directory to {}!", root.display());
|
||||
/// ```
|
||||
#[doc(alias = "chdir")]
|
||||
#[doc(alias = "chdir", alias = "SetCurrentDirectory", alias = "SetCurrentDirectoryW")]
|
||||
#[stable(feature = "env", since = "1.0.0")]
|
||||
pub fn set_current_dir<P: AsRef<Path>>(path: P) -> io::Result<()> {
|
||||
os_imp::chdir(path.as_ref())
|
||||
|
@ -655,6 +655,7 @@ pub fn home_dir() -> Option<PathBuf> {
|
|||
/// }
|
||||
/// ```
|
||||
#[must_use]
|
||||
#[doc(alias = "GetTempPath", alias = "GetTempPath2")]
|
||||
#[stable(feature = "env", since = "1.0.0")]
|
||||
pub fn temp_dir() -> PathBuf {
|
||||
os_imp::temp_dir()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue