Skip to content

Commit cf2bad8

Browse files
authored
improve english in create_dir_all docs
1 parent 1b55d19 commit cf2bad8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/libstd/fs.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1595,9 +1595,9 @@ pub fn create_dir<P: AsRef<Path>>(path: P) -> io::Result<()> {
15951595
///
15961596
/// Notable exception is made for situations where any of the directories
15971597
/// specified in the `path` could not be created as it was being created concurrently.
1598-
/// Such cases are considered success. In other words: calling `create_dir_all`
1599-
/// concurrently from multiple threads or processes is guaranteed to not fail
1600-
/// due to race itself.
1598+
/// Such cases are considered to be successful. That is, calling `create_dir_all`
1599+
/// concurrently from multiple threads or processes is guaranteed not to fail
1600+
/// due to a race condition with itself.
16011601
///
16021602
/// # Examples
16031603
///

0 commit comments

Comments
 (0)