Skip to content

Commit 8835289

Browse files
Fix some rustdoc warnings
1 parent b058dc0 commit 8835289

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/libstd/io/mod.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ fn read_to_end<R: Read + ?Sized>(r: &mut R, buf: &mut Vec<u8>) -> Result<usize>
441441
/// # }
442442
/// ```
443443
///
444-
/// Read from `&str` because [`&[u8]`] implements `Read`:
444+
/// Read from [`&str`] because [`&[u8]`][slice] implements `Read`:
445445
///
446446
/// ```
447447
/// # use std::io;
@@ -464,7 +464,8 @@ fn read_to_end<R: Read + ?Sized>(r: &mut R, buf: &mut Vec<u8>) -> Result<usize>
464464
/// [`File`]: ../fs/struct.File.html
465465
/// [`BufRead`]: trait.BufRead.html
466466
/// [`BufReader`]: struct.BufReader.html
467-
/// [`&[u8]`]: primitive.slice.html
467+
/// [`&str`]: ../../std/primitive.str.html
468+
/// [slice]: ../../std/primitive.slice.html
468469
#[stable(feature = "rust1", since = "1.0.0")]
469470
#[doc(spotlight)]
470471
pub trait Read {

0 commit comments

Comments
 (0)