mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-15 21:47:04 +00:00
add aliases for current_dir
This commit is contained in:
parent
f80e454450
commit
84c80e7348
@ -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…
Reference in New Issue
Block a user