about summary refs log tree commit diff
diff options
context:
space:
mode:
authorChris Denton <chris@chrisdenton.dev>2025-06-13 09:14:15 +0000
committerChris Denton <chris@chrisdenton.dev>2025-06-13 09:14:15 +0000
commitae645fc0b84d75191b17bb63cb00c7df9513b980 (patch)
tree1ee04afec1f0bb0a7369c341918dee056da932f0
parent015c7770ec0ffdba9ff03f1861144a827497f8ca (diff)
downloadrust-ae645fc0b84d75191b17bb63cb00c7df9513b980.tar.gz
rust-ae645fc0b84d75191b17bb63cb00c7df9513b980.zip
Remove "intermittent" wording from `ReadDir`
-rw-r--r--library/std/src/fs.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/library/std/src/fs.rs b/library/std/src/fs.rs
index 6cbf8301e01..0cd794fd3ef 100644
--- a/library/std/src/fs.rs
+++ b/library/std/src/fs.rs
@@ -153,9 +153,8 @@ pub struct Metadata(fs_imp::FileAttr);
 /// dependent.
 ///
 /// # Errors
-///
-/// This [`io::Result`] will be an [`Err`] if there's some sort of intermittent
-/// IO error during iteration.
+/// This [`io::Result`] will be an [`Err`] if an error occurred while fetching
+/// the next entry from the OS.
 #[stable(feature = "rust1", since = "1.0.0")]
 #[derive(Debug)]
 pub struct ReadDir(fs_imp::ReadDir);