Skip to content

Commit 6e9f4b6

Browse files
committed
update docs wrt to suggestions
1 parent 16f44fd commit 6e9f4b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/std/src/fs.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2803,8 +2803,8 @@ 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 path components are not a directory and already
2807-
/// exist.
2806+
/// This function is not atomic. If it returns an error, any parent components it was able to create
2807+
/// will remain.
28082808
///
28092809
/// If the empty path is passed to this function, it always succeeds without
28102810
/// creating any directories.

0 commit comments

Comments
 (0)