Skip to content

Commit 5451dfe

Browse files
mina86BurntSushi
andcommitted
Update library/std/src/io/mod.rs
Co-authored-by: Andrew Gallant <[email protected]>
1 parent 8654669 commit 5451dfe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

library/std/src/io/mod.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1394,9 +1394,9 @@ pub trait Write {
13941394
///
13951395
/// If this method consumed `n > 0` bytes of `buf` it must return [`Ok(n)`].
13961396
/// 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.
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.
14001400
///
14011401
/// # Errors
14021402
///

0 commit comments

Comments
 (0)