add aliases for current_dir

This commit is contained in:
julio 2022-05-24 19:41:40 -07:00
parent f80e454450
commit 84c80e7348

View file

@ -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()