We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b058dc0 commit 8835289Copy full SHA for 8835289
src/libstd/io/mod.rs
@@ -441,7 +441,7 @@ fn read_to_end<R: Read + ?Sized>(r: &mut R, buf: &mut Vec<u8>) -> Result<usize>
441
/// # }
442
/// ```
443
///
444
-/// Read from `&str` because [`&[u8]`] implements `Read`:
+/// Read from [`&str`] because [`&[u8]`][slice] implements `Read`:
445
446
447
/// # use std::io;
@@ -464,7 +464,8 @@ fn read_to_end<R: Read + ?Sized>(r: &mut R, buf: &mut Vec<u8>) -> Result<usize>
464
/// [`File`]: ../fs/struct.File.html
465
/// [`BufRead`]: trait.BufRead.html
466
/// [`BufReader`]: struct.BufReader.html
467
-/// [`&[u8]`]: primitive.slice.html
+/// [`&str`]: ../../std/primitive.str.html
468
+/// [slice]: ../../std/primitive.slice.html
469
#[stable(feature = "rust1", since = "1.0.0")]
470
#[doc(spotlight)]
471
pub trait Read {
0 commit comments