File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1392,10 +1392,10 @@ pub trait Write {
1392
1392
/// written, and a write which would otherwise block can be indicated through
1393
1393
/// an [`Err`] variant.
1394
1394
///
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
1399
1399
/// function should return [`ErrorKind::StorageFull`] error instead.
1400
1400
///
1401
1401
/// # Errors
You can’t perform that action at this time.
0 commit comments