We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8654669 commit 5451dfeCopy full SHA for 5451dfe
library/std/src/io/mod.rs
@@ -1394,9 +1394,9 @@ pub trait Write {
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()`.
1397
- /// Unless `input` is empty, this function shouldn’t return `Ok(0)` since
1398
- /// caller may interpret that as an error. To indicate lack of space
1399
- /// 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.
1400
1401
/// # Errors
1402
0 commit comments