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 {
14251425 ///
14261426 /// If this method consumed `n > 0` bytes of `buf` it must return [`Ok(n)`].
14271427 /// 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 .
14311431 ///
14321432 /// # Errors
14331433 ///
You can’t perform that action at this time.
0 commit comments