]> git.lizzy.rs Git - rust.git/blobdiff - library/std/src/sys/unix/fs.rs
Rollup merge of #106860 - anden3:doc-double-spaces, r=Dylan-DPC
[rust.git] / library / std / src / sys / unix / fs.rs
index 0e7d23a5c7c9d916bb9c4bdabe6329eee3c78088..8e1f35d6cc92011cac5704c196d5384390e3de3c 100644 (file)
@@ -614,13 +614,13 @@ fn next(&mut self) -> Option<io::Result<DirEntry>> {
             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;