From c185f08e467e02c83c940eb63516dcf35be0146b Mon Sep 17 00:00:00 2001 From: Josh Triplett Date: Thu, 29 Apr 2021 12:41:23 -0700 Subject: [PATCH] Add doc alias for `chdir` to `std::env::set_current_dir` Searching for `chdir` in the Rust documentation produces no useful results. --- library/std/src/env.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/library/std/src/env.rs b/library/std/src/env.rs index d20bb58584101..b78336a7ce65b 100644 --- a/library/std/src/env.rs +++ b/library/std/src/env.rs @@ -61,6 +61,7 @@ pub fn current_dir() -> io::Result { /// assert!(env::set_current_dir(&root).is_ok()); /// println!("Successfully changed working directory to {}!", root.display()); /// ``` +#[doc(alias = "chdir")] #[stable(feature = "env", since = "1.0.0")] pub fn set_current_dir>(path: P) -> io::Result<()> { os_imp::chdir(path.as_ref())