Skip to content

Commit d1932ce

Browse files
committed
fix the std::fs::create_dir_all docs
1 parent 958c39d commit d1932ce

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

library/std/src/fs.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2803,6 +2803,9 @@ pub fn create_dir<P: AsRef<Path>>(path: P) -> io::Result<()> {
28032803
/// Recursively create a directory and all of its parent components if they
28042804
/// are missing.
28052805
///
2806+
/// This function returns an error if any of the parent components are not a directory and already
2807+
/// exist.
2808+
///
28062809
/// If the empty path is passed to this function, it always succeeds without
28072810
/// creating any directories.
28082811
///

0 commit comments

Comments
 (0)