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>
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) ]
470471pub trait Read {
You can’t perform that action at this time.
0 commit comments