File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1425,9 +1425,9 @@ pub trait Write {
1425
1425
///
1426
1426
/// If this method consumed `n > 0` bytes of `buf` it must return [`Ok(n)`].
1427
1427
/// If the return value is `Ok(n)` then `n` must satisfy `n <= buf.len()`.
1428
- /// Unless `buf` is empty, this function shouldn’t return `Ok(0)` since the
1429
- /// caller may interpret that as an error. To indicate lack of space,
1430
- /// implementors should return [`ErrorKind::StorageFull`] error instead .
1428
+ /// A return value of `Ok(0)` typically means that the underlying object is
1429
+ /// no longer able to accept bytes and will likely not be able to in the
1430
+ /// future as well, or that the buffer provided is empty .
1431
1431
///
1432
1432
/// # Errors
1433
1433
///
You can’t perform that action at this time.
0 commit comments