diff options
| author | julio <julio.grillo98@gmail.com> | 2022-05-24 19:41:40 -0700 |
|---|---|---|
| committer | julio <julio.grillo98@gmail.com> | 2022-05-24 19:41:40 -0700 |
| commit | 84c80e73487ddc88c2cac8023bd7bb9bd8694756 (patch) | |
| tree | 7539c5b4a8f390dc1720744a81d7b516085ca8be | |
| parent | f80e454450c891c075617d23532c6eb317f4471d (diff) | |
| download | rust-84c80e73487ddc88c2cac8023bd7bb9bd8694756.tar.gz rust-84c80e73487ddc88c2cac8023bd7bb9bd8694756.zip | |
add aliases for current_dir
| -rw-r--r-- | library/std/src/env.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/library/std/src/env.rs b/library/std/src/env.rs index 4027a71a06c..463f714064c 100644 --- a/library/std/src/env.rs +++ b/library/std/src/env.rs @@ -49,6 +49,9 @@ use crate::sys::os as os_imp; /// Ok(()) /// } /// ``` +#[doc(alias = "pwd")] +#[doc(alias = "getcwd")] +#[doc(alias = "GetCurrentDirectory")] #[stable(feature = "env", since = "1.0.0")] pub fn current_dir() -> io::Result<PathBuf> { os_imp::getcwd() |
