Skip to content

Commit 53c5046

Browse files
author
Ali Raheem
committed
Fix gramitcal error in read_dir example
1 parent 8068812 commit 53c5046

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/fs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2002,7 +2002,7 @@ pub fn remove_dir_all<P: AsRef<Path>>(path: P) -> io::Result<()> {
20022002
/// use std::{fs, io};
20032003
///
20042004
/// fn main() -> io::Result<()> {
2005-
/// // The order read_dir returns entries is not guaranteed. If reproducible
2005+
/// // The order in which `read_dir` returns entries is not guaranteed. If reproducible
20062006
/// // ordering is required the entries should be explicitly sorted.
20072007
/// let mut entries = fs::read_dir(".")?
20082008
/// .map(|res| res.map(|e| e.path()))

0 commit comments

Comments
 (0)