We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5451dfe commit 7d57cd5Copy full SHA for 7d57cd5
library/std/src/io/mod.rs
@@ -1393,7 +1393,7 @@ pub trait Write {
1393
/// an [`Err`] variant.
1394
///
1395
/// 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()`.
+ /// If the return value is `Ok(n)` then `n` must satisfy `n <= buf.len()`.
1397
/// Unless `buf` is empty, this function shouldn’t return `Ok(0)` since the
1398
/// caller may interpret that as an error. To indicate lack of space,
1399
/// implementors should return [`ErrorKind::StorageFull`] error instead.
0 commit comments