File tree 1 file changed +7
-3
lines changed
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -2258,7 +2258,7 @@ pub fn canonicalize<P: AsRef<Path>>(path: P) -> io::Result<PathBuf> {
2258
2258
/// # Platform-specific behavior
2259
2259
///
2260
2260
/// This function currently corresponds to the `mkdir` function on Unix
2261
- /// and the `CreateDirectory ` function on Windows.
2261
+ /// and the `CreateDirectoryW ` function on Windows.
2262
2262
/// Note that, this [may change in the future][changes].
2263
2263
///
2264
2264
/// [changes]: io#platform-specific-behavior
@@ -2298,10 +2298,14 @@ pub fn create_dir<P: AsRef<Path>>(path: P) -> io::Result<()> {
2298
2298
/// Recursively create a directory and all of its parent components if they
2299
2299
/// are missing.
2300
2300
///
2301
+ /// If this function returns an error, some of the parent components might have
2302
+ /// been created already.
2303
+ ///
2301
2304
/// # Platform-specific behavior
2302
2305
///
2303
- /// This function currently corresponds to the `mkdir` function on Unix
2304
- /// and the `CreateDirectory` function on Windows.
2306
+ /// This function currently corresponds to multiple calls to the `mkdir`
2307
+ /// function on Unix and the `CreateDirectoryW` function on Windows.
2308
+ ///
2305
2309
/// Note that, this [may change in the future][changes].
2306
2310
///
2307
2311
/// [changes]: io#platform-specific-behavior
You can’t perform that action at this time.
0 commit comments