Skip to content

Commit 56f2be7

Browse files
committed
implemented review points
1 parent 8b5f2cb commit 56f2be7

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

library/std/src/fs.rs

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2400,17 +2400,12 @@ pub fn create_dir<P: AsRef<Path>>(path: P) -> io::Result<()> {
24002400
///
24012401
/// # Errors
24022402
///
2403-
/// This function will return an error in the following situation, but is not
2404-
/// limited to just this case:
2405-
///
2406-
/// * If any directory specified in `path`
2407-
/// does not already exist and could not be created. The specific
2408-
/// error conditions for when a directory is being created (after it is
2409-
/// determined to not exist) are outlined by [`fs::create_dir`].
2403+
/// The function will return an error if any directory specified in path does not does not exist and could not
2404+
/// be created. There may be other error conditions; see [fs::create_dir] for specifics.
24102405
///
24112406
/// Notable exception is made for situations where any of the directories
24122407
/// specified in the `path` could not be created as it was being created concurrently.
2413-
/// Such cases are considered to be successful. Because calling `create_dir_all`
2408+
/// Such cases are considered to be successful. That is, calling `create_dir_all`
24142409
/// concurrently from multiple threads or processes is guaranteed not to fail
24152410
/// due to a race condition with itself.
24162411
///

0 commit comments

Comments
 (0)