about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMichal Nazarewicz <mina86@mina86.com>2023-03-03 03:16:56 +0100
committerGitHub <noreply@github.com>2023-03-03 03:16:56 +0100
commit7d57cd524a33179be58287737b7fd603a9d4a759 (patch)
treef9378c744a1cb8324c754e03fb7c69a9441cccb3
parent5451dfe6c0c841c0a01d812eebb62e60576dbf89 (diff)
downloadrust-7d57cd524a33179be58287737b7fd603a9d4a759.tar.gz
rust-7d57cd524a33179be58287737b7fd603a9d4a759.zip
Update library/std/src/io/mod.rs
Co-authored-by: Jacob Lifshay <programmerjake@gmail.com>
-rw-r--r--library/std/src/io/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/io/mod.rs b/library/std/src/io/mod.rs
index 8e8fa147c0d..b2fcb966032 100644
--- a/library/std/src/io/mod.rs
+++ b/library/std/src/io/mod.rs
@@ -1393,7 +1393,7 @@ pub trait Write {
     /// an [`Err`] variant.
     ///
     /// 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()`.
+    /// If the return value is `Ok(n)` then `n` must satisfy `n <= buf.len()`.
     /// 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.