File tree 1 file changed +7
-5
lines changed
1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -233,8 +233,8 @@ pub struct DirBuilder {
233
233
/// This function will return an error if `path` does not already exist.
234
234
/// Other errors may also be returned according to [`OpenOptions::open`].
235
235
///
236
- /// It will also return an error if it encounters while reading an error
237
- /// of a kind other than [` io::ErrorKind::Interrupted`] .
236
+ /// While reading from the file, this function handles [`io::ErrorKind::Interrupted`]
237
+ /// with automatic retries. See [ io::Read] documentation for details .
238
238
///
239
239
/// # Examples
240
240
///
@@ -271,9 +271,11 @@ pub fn read<P: AsRef<Path>>(path: P) -> io::Result<Vec<u8>> {
271
271
/// This function will return an error if `path` does not already exist.
272
272
/// Other errors may also be returned according to [`OpenOptions::open`].
273
273
///
274
- /// It will also return an error if it encounters while reading an error
275
- /// of a kind other than [`io::ErrorKind::Interrupted`],
276
- /// or if the contents of the file are not valid UTF-8.
274
+ /// If the contents of the file are not valid UTF-8, then an error will also be
275
+ /// returned.
276
+ ///
277
+ /// While reading from the file, this function handles [`io::ErrorKind::Interrupted`]
278
+ /// with automatic retries. See [io::Read] documentation for details.
277
279
///
278
280
/// # Examples
279
281
///
You can’t perform that action at this time.
0 commit comments