add aliases for current_dir
This commit is contained in:
parent
f80e454450
commit
84c80e7348
1 changed files with 3 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue