Skip to content

Commit 87c9f32

Browse files
authored
Rollup merge of #86839 - D1mon:patch-1, r=JohnTitor
Add doc aliases to fs.rs Add aliases for create_dir, create_dir_all, remove_dir, remove_dir_all
2 parents 7c1283a + 387cd6d commit 87c9f32

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

library/std/src/fs.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1912,6 +1912,7 @@ pub fn canonicalize<P: AsRef<Path>>(path: P) -> io::Result<PathBuf> {
19121912
/// Ok(())
19131913
/// }
19141914
/// ```
1915+
#[doc(alias = "mkdir")]
19151916
#[stable(feature = "rust1", since = "1.0.0")]
19161917
pub fn create_dir<P: AsRef<Path>>(path: P) -> io::Result<()> {
19171918
DirBuilder::new().create(path.as_ref())
@@ -1991,6 +1992,7 @@ pub fn create_dir_all<P: AsRef<Path>>(path: P) -> io::Result<()> {
19911992
/// Ok(())
19921993
/// }
19931994
/// ```
1995+
#[doc(alias = "rmdir")]
19941996
#[stable(feature = "rust1", since = "1.0.0")]
19951997
pub fn remove_dir<P: AsRef<Path>>(path: P) -> io::Result<()> {
19961998
fs_imp::rmdir(path.as_ref())

0 commit comments

Comments
 (0)