Skip to content

Commit

Permalink
Rollup merge of rust-lang#46853 - GuillaumeGomez:fix-rustdoc-warning,…
Browse files Browse the repository at this point in the history
… r=QuietMisdreavus

Fix some rustdoc warnings

r? @QuietMisdreavus

cc @steveklabnik
  • Loading branch information
GuillaumeGomez authored Dec 21, 2017
2 parents 2917ac6 + 8835289 commit 365f757
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/libstd/io/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ fn read_to_end<R: Read + ?Sized>(r: &mut R, buf: &mut Vec<u8>) -> Result<usize>
/// # }
/// ```
///
/// Read from `&str` because [`&[u8]`] implements `Read`:
/// Read from [`&str`] because [`&[u8]`][slice] implements `Read`:
///
/// ```
/// # use std::io;
Expand All @@ -464,7 +464,8 @@ fn read_to_end<R: Read + ?Sized>(r: &mut R, buf: &mut Vec<u8>) -> Result<usize>
/// [`File`]: ../fs/struct.File.html
/// [`BufRead`]: trait.BufRead.html
/// [`BufReader`]: struct.BufReader.html
/// [`&[u8]`]: primitive.slice.html
/// [`&str`]: ../../std/primitive.str.html
/// [slice]: ../../std/primitive.slice.html
#[stable(feature = "rust1", since = "1.0.0")]
#[doc(spotlight)]
pub trait Read {
Expand Down

0 comments on commit 365f757

Please sign in to comment.