Fix incorrect error type in Read::byte docs

This commit is contained in:
Matt Brubeck
2017-10-31 12:30:15 -07:00
parent 8b22e70b2d
commit 351f7b02de

View File

@@ -736,10 +736,10 @@ pub trait Read {
/// Transforms this `Read` instance to an [`Iterator`] over its bytes. /// Transforms this `Read` instance to an [`Iterator`] over its bytes.
/// ///
/// The returned type implements [`Iterator`] where the `Item` is [`Result`]`<`[`u8`]`, /// The returned type implements [`Iterator`] where the `Item` is
/// R::Err>`. The yielded item is [`Ok`] if a byte was successfully read and /// [`Result`]`<`[`u8`]`, `[`io::Error`]>`.
/// [`Err`] otherwise for I/O errors. EOF is mapped to returning [`None`] from /// The yielded item is [`Ok`] if a byte was successfully read and [`Err`]
/// this iterator. /// otherwise. EOF is mapped to returning [`None`] from this iterator.
/// ///
/// # Examples /// # Examples
/// ///
@@ -748,6 +748,7 @@ pub trait Read {
/// [file]: ../fs/struct.File.html /// [file]: ../fs/struct.File.html
/// [`Iterator`]: ../../std/iter/trait.Iterator.html /// [`Iterator`]: ../../std/iter/trait.Iterator.html
/// [`Result`]: ../../std/result/enum.Result.html /// [`Result`]: ../../std/result/enum.Result.html
/// [`io::Error``]: ../../std/io/struct.Error.html
/// [`u8`]: ../../std/primitive.u8.html /// [`u8`]: ../../std/primitive.u8.html
/// [`Ok`]: ../../std/result/enum.Result.html#variant.Ok /// [`Ok`]: ../../std/result/enum.Result.html#variant.Ok
/// [`Err`]: ../../std/result/enum.Result.html#variant.Err /// [`Err`]: ../../std/result/enum.Result.html#variant.Err