Skip to content

Commit

Permalink
Rollup merge of rust-lang#133183 - n0toose:improve-remove-dir-docs, r…
Browse files Browse the repository at this point in the history
…=joboet

Mention std::fs::remove_dir_all in std::fs::remove_dir
  • Loading branch information
matthiaskrgr authored Nov 19, 2024
2 parents 40735d3 + a3c9597 commit d6ee9db
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions std/src/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2738,6 +2738,10 @@ pub fn create_dir_all<P: AsRef<Path>>(path: P) -> io::Result<()> {

/// Removes an empty directory.
///
/// If you want to remove a directory that is not empty, as well as all
/// of its contents recursively, consider using [`remove_dir_all`]
/// instead.
///
/// # Platform-specific behavior
///
/// This function currently corresponds to the `rmdir` function on Unix
Expand Down

0 comments on commit d6ee9db

Please sign in to comment.