X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=library%2Fstd%2Fsrc%2Fsys%2Funix%2Ffs.rs;fp=library%2Fstd%2Fsrc%2Fsys%2Funix%2Ffs.rs;h=8e1f35d6cc92011cac5704c196d5384390e3de3c;hb=e0eb63a73ccfb9aa7b09b39b3c9fe23287f5cac9;hp=0e7d23a5c7c9d916bb9c4bdabe6329eee3c78088;hpb=bc0c816410fd4015a2bcb74cbd6084da46753df9;p=rust.git diff --git a/library/std/src/sys/unix/fs.rs b/library/std/src/sys/unix/fs.rs index 0e7d23a5c7c..8e1f35d6cc9 100644 --- a/library/std/src/sys/unix/fs.rs +++ b/library/std/src/sys/unix/fs.rs @@ -614,13 +614,13 @@ fn next(&mut self) -> Option> { loop { // As of POSIX.1-2017, readdir() is not required to be thread safe; only // readdir_r() is. However, readdir_r() cannot correctly handle platforms - // with unlimited or variable NAME_MAX. Many modern platforms guarantee + // with unlimited or variable NAME_MAX. Many modern platforms guarantee // thread safety for readdir() as long an individual DIR* is not accessed // concurrently, which is sufficient for Rust. super::os::set_errno(0); let entry_ptr = readdir64(self.inner.dirp.0); if entry_ptr.is_null() { - // We either encountered an error, or reached the end. Either way, + // We either encountered an error, or reached the end. Either way, // the next call to next() should return None. self.end_of_stream = true;