Skip to content

Commit 84c80e7

Browse files
committed
add aliases for current_dir
1 parent f80e454 commit 84c80e7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

library/std/src/env.rs

+3
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ use crate::sys::os as os_imp;
4949
/// Ok(())
5050
/// }
5151
/// ```
52+
#[doc(alias = "pwd")]
53+
#[doc(alias = "getcwd")]
54+
#[doc(alias = "GetCurrentDirectory")]
5255
#[stable(feature = "env", since = "1.0.0")]
5356
pub fn current_dir() -> io::Result<PathBuf> {
5457
os_imp::getcwd()

0 commit comments

Comments
 (0)