about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMichal Nazarewicz <mina86@mina86.com>2023-03-01 00:48:22 +0100
committerMichal Nazarewicz <mina86@mina86.com>2023-03-01 01:44:56 +0100
commit5451dfe6c0c841c0a01d812eebb62e60576dbf89 (patch)
tree02b83746f6566dbbc4463d42925eff206b09e691
parent8654669ed4569216fde2c16edb49d05cd373f038 (diff)
downloadrust-5451dfe6c0c841c0a01d812eebb62e60576dbf89.tar.gz
rust-5451dfe6c0c841c0a01d812eebb62e60576dbf89.zip
Update library/std/src/io/mod.rs
Co-authored-by: Andrew Gallant <jamslam@gmail.com>
-rw-r--r--library/std/src/io/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/library/std/src/io/mod.rs b/library/std/src/io/mod.rs
index d4f8c3123b2..8e8fa147c0d 100644
--- a/library/std/src/io/mod.rs
+++ b/library/std/src/io/mod.rs
@@ -1394,9 +1394,9 @@ pub trait Write {
     ///
     /// If this method consumed `n > 0` bytes of `buf` it must return [`Ok(n)`].
     /// If the return value is `Ok(n)` it must hold than `n <= buf.len()`.
-    /// Unless `input` is empty, this function shouldn’t return `Ok(0)` since
-    /// caller may interpret that as an error.  To indicate lack of space
-    /// function should return [`ErrorKind::StorageFull`] error instead.
+    /// Unless `buf` is empty, this function shouldn’t return `Ok(0)` since the
+    /// caller may interpret that as an error.  To indicate lack of space,
+    /// implementors should return [`ErrorKind::StorageFull`] error instead.
     ///
     /// # Errors
     ///