File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -736,10 +736,10 @@ pub trait Read {
736
736
737
737
/// Transforms this `Read` instance to an [`Iterator`] over its bytes.
738
738
///
739
- /// The returned type implements [`Iterator`] where the `Item` is [`Result`]`<`[`u8`]`,
740
- /// R::Err>`. The yielded item is [`Ok`] if a byte was successfully read and
741
- /// [`Err `] otherwise for I/O errors. EOF is mapped to returning [`None`] from
742
- /// this iterator.
739
+ /// The returned type implements [`Iterator`] where the `Item` is
740
+ /// [`Result`]`<`[`u8`]`, `[`io::Error`]>`.
741
+ /// The yielded item is [`Ok `] if a byte was successfully read and [`Err`]
742
+ /// otherwise. EOF is mapped to returning [`None`] from this iterator.
743
743
///
744
744
/// # Examples
745
745
///
@@ -748,6 +748,7 @@ pub trait Read {
748
748
/// [file]: ../fs/struct.File.html
749
749
/// [`Iterator`]: ../../std/iter/trait.Iterator.html
750
750
/// [`Result`]: ../../std/result/enum.Result.html
751
+ /// [`io::Error``]: ../../std/io/struct.Error.html
751
752
/// [`u8`]: ../../std/primitive.u8.html
752
753
/// [`Ok`]: ../../std/result/enum.Result.html#variant.Ok
753
754
/// [`Err`]: ../../std/result/enum.Result.html#variant.Err
You can’t perform that action at this time.
0 commit comments