Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 84c80e7

Browse files
committedMay 25, 2022
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

Lines changed: 3 additions & 0 deletions
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)
Please sign in to comment.