Skip to content

Commit

Permalink
Document that fs::read_dir skips . and ..
Browse files Browse the repository at this point in the history
  • Loading branch information
jetomit committed Aug 7, 2021
1 parent 996ff2e commit c32e4ba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions library/std/src/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2039,6 +2039,8 @@ pub fn remove_dir_all<P: AsRef<Path>>(path: P) -> io::Result<()> {
///
/// The iterator will yield instances of [`io::Result`]`<`[`DirEntry`]`>`.
/// New errors may be encountered after an iterator is initially constructed.
/// Entries for the current and parent directories (typically `.` and `..`) are
/// skipped.
///
/// # Platform-specific behavior
///
Expand Down

0 comments on commit c32e4ba

Please sign in to comment.