Skip to content

Commit 7d57cd5

Browse files
Update library/std/src/io/mod.rs
Co-authored-by: Jacob Lifshay <[email protected]>
1 parent 5451dfe commit 7d57cd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/std/src/io/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1393,7 +1393,7 @@ pub trait Write {
13931393
/// an [`Err`] variant.
13941394
///
13951395
/// If this method consumed `n > 0` bytes of `buf` it must return [`Ok(n)`].
1396-
/// If the return value is `Ok(n)` it must hold than `n <= buf.len()`.
1396+
/// If the return value is `Ok(n)` then `n` must satisfy `n <= buf.len()`.
13971397
/// Unless `buf` is empty, this function shouldn’t return `Ok(0)` since the
13981398
/// caller may interpret that as an error. To indicate lack of space,
13991399
/// implementors should return [`ErrorKind::StorageFull`] error instead.

0 commit comments

Comments
 (0)