diff options
| author | SabrinaJewson <sejewson@gmail.com> | 2024-02-18 14:04:27 +0000 |
|---|---|---|
| committer | SabrinaJewson <sejewson@gmail.com> | 2024-02-18 14:04:27 +0000 |
| commit | 6be93ccbee1caf4aaf2d9f5d386b9dccdb385ca8 (patch) | |
| tree | b64321b3a2be910ebdd15329a437a588077c4aa4 /library/std/src/env.rs | |
| parent | 6f726205a1b7992537ddec96c83f2b054b03e04f (diff) | |
| download | rust-6be93ccbee1caf4aaf2d9f5d386b9dccdb385ca8.tar.gz rust-6be93ccbee1caf4aaf2d9f5d386b9dccdb385ca8.zip | |
Add uncontroversial syscall doc aliases to std docs
Diffstat (limited to 'library/std/src/env.rs')
| -rw-r--r-- | library/std/src/env.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/library/std/src/env.rs b/library/std/src/env.rs index 30ac0512348..5bd20ebe208 100644 --- a/library/std/src/env.rs +++ b/library/std/src/env.rs @@ -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() |
