File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -441,7 +441,7 @@ fn read_to_end<R: Read + ?Sized>(r: &mut R, buf: &mut Vec<u8>) -> Result<usize>
441
441
/// # }
442
442
/// ```
443
443
///
444
- /// Read from `&str` because [`&[u8]`] implements `Read`:
444
+ /// Read from [ `&str`] because [`&[u8]`][slice ] implements `Read`:
445
445
///
446
446
/// ```
447
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
464
/// [`File`]: ../fs/struct.File.html
465
465
/// [`BufRead`]: trait.BufRead.html
466
466
/// [`BufReader`]: struct.BufReader.html
467
- /// [`&[u8]`]: primitive.slice.html
467
+ /// [`&str`]: ../../std/primitive.str.html
468
+ /// [slice]: ../../std/primitive.slice.html
468
469
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
469
470
#[ doc( spotlight) ]
470
471
pub trait Read {
You can’t perform that action at this time.
0 commit comments