File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1392,10 +1392,10 @@ pub trait Write {
13921392 /// written, and a write which would otherwise block can be indicated through
13931393 /// an [`Err`] variant.
13941394 ///
1395- /// If the return value is [`Ok(n)`] then it must be guaranteed that `n <=
1396- /// buf.len()`. Unless `input` is empty, this function shouldn’t return `0`
1397- /// since caller may interpret that as an error (the default implementation
1398- /// of [`Write::write_all`] does exactly that) . To indicate lack of space
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
13991399 /// function should return [`ErrorKind::StorageFull`] error instead.
14001400 ///
14011401 /// # Errors
You can’t perform that action at this time.
0 commit comments