diff --git a/library/alloc/src/io/read.rs b/library/alloc/src/io/read.rs index e3d26218c09a0..2f4e891aa4429 100644 --- a/library/alloc/src/io/read.rs +++ b/library/alloc/src/io/read.rs @@ -488,6 +488,14 @@ pub trait Read { /// which can be very inefficient for data that's not in memory, /// such as `File`. Consider using a `BufReader` in such cases. /// + /// # Errors + /// + /// When the returned iterator calls [`Iterator::next`], + /// if it encounters an error of the kind [`ErrorKind::Interrupted`] + /// then the error is ignored and it will try to read the byte again. + /// + /// [`ErrorKind::Interrupted`]: crate::io::ErrorKind::Interrupted + /// /// # Examples /// /// `File`s implement `Read`: