diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2017-12-21 13:18:19 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-12-21 13:18:19 +0100 |
| commit | 365f7574b23cbfa3a6918840fd40c0d534465850 (patch) | |
| tree | a4b468a94f5950e52309cb0395b89785d5da5527 /src/libstd | |
| parent | 2917ac6b5973bfa5f65af4f94d8034a51b958a44 (diff) | |
| parent | 8835289434ba88351610f1ca7a19f7fefe5a53fa (diff) | |
| download | rust-365f7574b23cbfa3a6918840fd40c0d534465850.tar.gz rust-365f7574b23cbfa3a6918840fd40c0d534465850.zip | |
Rollup merge of #46853 - GuillaumeGomez:fix-rustdoc-warning, r=QuietMisdreavus
Fix some rustdoc warnings r? @QuietMisdreavus cc @steveklabnik
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/io/mod.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libstd/io/mod.rs b/src/libstd/io/mod.rs index 9c401d7663f..e9b707c57eb 100644 --- a/src/libstd/io/mod.rs +++ b/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> /// # } /// ``` /// -/// 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 { |
