File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -172,14 +172,11 @@ pub trait Read {
172
172
/// Read all bytes until EOF in this source, placing them into `buf`.
173
173
///
174
174
/// All bytes read from this source will be appended to the specified buffer
175
- /// `buf`. This function will return a call to `read` either:
175
+ /// `buf`. This function will continuously call `read` to append more data to
176
+ /// `buf` until `read` returns either `Ok(0)` or an error of
177
+ /// non-`ErrorKind::Interrupted` kind.
176
178
///
177
- /// 1. Returns `Ok(0)`.
178
- /// 2. Returns an error which is not of the kind `ErrorKind::Interrupted`.
179
- ///
180
- /// Until one of these conditions is met the function will continuously
181
- /// invoke `read` to append more data to `buf`. If successful, this function
182
- /// will return the total number of bytes read.
179
+ /// If successful, this function will return the total number of bytes read.
183
180
///
184
181
/// # Errors
185
182
///
You can’t perform that action at this time.
0 commit comments