From 84c80e73487ddc88c2cac8023bd7bb9bd8694756 Mon Sep 17 00:00:00 2001 From: julio Date: Tue, 24 May 2022 19:41:40 -0700 Subject: [PATCH] add aliases for current_dir --- library/std/src/env.rs | 3 +++ 1 file changed, 3 insertions(+) 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 @@ /// Ok(()) /// } /// ``` +#[doc(alias = "pwd")] +#[doc(alias = "getcwd")] +#[doc(alias = "GetCurrentDirectory")] #[stable(feature = "env", since = "1.0.0")] pub fn current_dir() -> io::Result { os_imp::getcwd() -- GitLab