Fix gramitcal error in read_dir example

This commit is contained in:
Ali Raheem 2019-08-15 10:53:29 +01:00
parent 8068812d04
commit 53c504650d

View file

@ -2002,7 +2002,7 @@ pub fn remove_dir_all<P: AsRef<Path>>(path: P) -> io::Result<()> {
/// use std::{fs, io};
///
/// fn main() -> io::Result<()> {
/// // The order read_dir returns entries is not guaranteed. If reproducible
/// // The order in which `read_dir` returns entries is not guaranteed. If reproducible
/// // ordering is required the entries should be explicitly sorted.
/// let mut entries = fs::read_dir(".")?
/// .map(|res| res.map(|e| e.path()))