@@ -2400,13 +2400,8 @@ pub fn create_dir<P: AsRef<Path>>(path: P) -> io::Result<()> {
|
2400 | 2400 | /// |
2401 | 2401 | /// # Errors |
2402 | 2402 | /// |
2403 | | -/// This function will return an error in the following situations, but is not |
2404 | | -/// limited to just these cases: |
2405 | | -/// |
2406 | | -/// * If any directory in the path specified by `path` |
2407 | | -/// does not already exist and it could not be created otherwise. 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 exist and |
| 2404 | +/// could not be created. There may be other error conditions; see [`fs::create_dir`] for specifics. |
2410 | 2405 | /// |
2411 | 2406 | /// Notable exception is made for situations where any of the directories |
2412 | 2407 | /// specified in the `path` could not be created as it was being created concurrently. |
|