about summary refs log tree commit diff
path: root/library/std/src/sys/unix/fs.rs
diff options
context:
space:
mode:
authorAndré Vennberg <andre.vennberg@gmail.com>2023-01-14 16:33:11 +0100
committerAndré Vennberg <andre.vennberg@gmail.com>2023-01-14 17:22:04 +0100
commit0b35f448f8e9f39ed6fc1c494eeb331afba513bc (patch)
treec2669a980d1b6d0414ec2fc0c79600f0d1b090cf /library/std/src/sys/unix/fs.rs
parent44a500c8c187b245638684748f54bd6ec67e0b25 (diff)
downloadrust-0b35f448f8e9f39ed6fc1c494eeb331afba513bc.tar.gz
rust-0b35f448f8e9f39ed6fc1c494eeb331afba513bc.zip
Remove various double spaces in source comments.
Diffstat (limited to 'library/std/src/sys/unix/fs.rs')
-rw-r--r--library/std/src/sys/unix/fs.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/sys/unix/fs.rs b/library/std/src/sys/unix/fs.rs
index aea0c26ee8b..3a43a007171 100644
--- a/library/std/src/sys/unix/fs.rs
+++ b/library/std/src/sys/unix/fs.rs
@@ -600,13 +600,13 @@ impl Iterator for ReadDir {
             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;