]> git.lizzy.rs Git - rust.git/commitdiff
Fix some rustdoc warnings
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Tue, 19 Dec 2017 22:08:31 +0000 (23:08 +0100)
committerGuillaume Gomez <guillaume1.gomez@gmail.com>
Wed, 20 Dec 2017 16:50:02 +0000 (17:50 +0100)
src/libstd/io/mod.rs

index 9c401d7663fd62d3d7528ec1ccb7461f73fd75f0..e9b707c57ebbf57a6f043d9873b26ef4e521a916 100644 (file)
@@ -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;
@@ -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 {