@@ -1212,7 +1212,7 @@ impl Initializer {
12121212///
12131213/// [`write`]: Self::write
12141214/// [`flush`]: Self::flush
1215- /// [`std::io`]: index.html
1215+ /// [`std::io`]: self
12161216///
12171217/// # Examples
12181218///
@@ -1590,8 +1590,6 @@ pub trait Seek {
15901590 /// # Errors
15911591 ///
15921592 /// Seeking to a negative offset is considered an error.
1593- ///
1594- /// [`SeekFrom::Start`]: enum.SeekFrom.html#variant.Start
15951593 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
15961594 fn seek ( & mut self , pos : SeekFrom ) -> Result < u64 > ;
15971595
@@ -1678,8 +1676,6 @@ pub trait Seek {
16781676/// Enumeration of possible methods to seek within an I/O object.
16791677///
16801678/// It is used by the [`Seek`] trait.
1681- ///
1682- /// [`Seek`]: trait.Seek.html
16831679#[ derive( Copy , PartialEq , Eq , Clone , Debug ) ]
16841680#[ stable( feature = "rust1" , since = "1.0.0" ) ]
16851681pub enum SeekFrom {
@@ -1759,11 +1755,9 @@ fn read_until<R: BufRead + ?Sized>(r: &mut R, delim: u8, buf: &mut Vec<u8>) -> R
17591755/// For example, [`File`] implements [`Read`], but not `BufRead`.
17601756/// [`BufReader`] to the rescue!
17611757///
1762- /// [`BufReader`]: struct.BufReader.html
17631758/// [`File`]: crate::fs::File
17641759/// [`read_line`]: Self::read_line
17651760/// [`lines`]: Self::lines
1766- /// [`Read`]: trait.Read.html
17671761///
17681762/// ```no_run
17691763/// use std::io::{self, BufReader};
@@ -1869,16 +1863,13 @@ pub trait BufRead: Read {
18691863 /// present in `buf` and its length will have been adjusted appropriately.
18701864 ///
18711865 /// [`fill_buf`]: Self::fill_buf
1872- /// [`ErrorKind::Interrupted`]: enum.ErrorKind.html#variant.Interrupted
18731866 ///
18741867 /// # Examples
18751868 ///
18761869 /// [`std::io::Cursor`][`Cursor`] is a type that implements `BufRead`. In
18771870 /// this example, we use [`Cursor`] to read all the bytes in a byte slice
18781871 /// in hyphen delimited segments:
18791872 ///
1880- /// [`Cursor`]: struct.Cursor.html
1881- ///
18821873 /// ```
18831874 /// use std::io::{self, BufRead};
18841875 ///
@@ -1940,8 +1931,6 @@ pub trait BufRead: Read {
19401931 /// [`std::io::Cursor`][`Cursor`] is a type that implements `BufRead`. In
19411932 /// this example, we use [`Cursor`] to read all the lines in a byte slice:
19421933 ///
1943- /// [`Cursor`]: struct.Cursor.html
1944- ///
19451934 /// ```
19461935 /// use std::io::{self, BufRead};
19471936 ///
@@ -1996,8 +1985,6 @@ pub trait BufRead: Read {
19961985 /// this example, we use [`Cursor`] to iterate over all hyphen delimited
19971986 /// segments in a byte slice
19981987 ///
1999- /// [`Cursor`]: struct.Cursor.html
2000- ///
20011988 /// ```
20021989 /// use std::io::{self, BufRead};
20031990 ///
@@ -2046,8 +2033,6 @@ pub trait BufRead: Read {
20462033 /// # Errors
20472034 ///
20482035 /// Each line of the iterator has the same error semantics as [`BufRead::read_line`].
2049- ///
2050- /// [`BufRead::read_line`]: trait.BufRead.html#method.read_line
20512036 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
20522037 fn lines ( self ) -> Lines < Self >
20532038 where
@@ -2062,7 +2047,7 @@ pub trait BufRead: Read {
20622047/// This struct is generally created by calling [`chain`] on a reader.
20632048/// Please see the documentation of [`chain`] for more details.
20642049///
2065- /// [`chain`]: trait. Read.html#method. chain
2050+ /// [`chain`]: Read:: chain
20662051#[ stable( feature = "rust1" , since = "1.0.0" ) ]
20672052pub struct Chain < T , U > {
20682053 first : T ,
@@ -2204,7 +2189,7 @@ impl<T: BufRead, U: BufRead> BufRead for Chain<T, U> {
22042189/// This struct is generally created by calling [`take`] on a reader.
22052190/// Please see the documentation of [`take`] for more details.
22062191///
2207- /// [`take`]: trait. Read.html#method. take
2192+ /// [`take`]: Read:: take
22082193#[ stable( feature = "rust1" , since = "1.0.0" ) ]
22092194#[ derive( Debug ) ]
22102195pub struct Take < T > {
@@ -2403,7 +2388,7 @@ impl<T: BufRead> BufRead for Take<T> {
24032388/// This struct is generally created by calling [`bytes`] on a reader.
24042389/// Please see the documentation of [`bytes`] for more details.
24052390///
2406- /// [`bytes`]: trait. Read.html#method. bytes
2391+ /// [`bytes`]: Read:: bytes
24072392#[ stable( feature = "rust1" , since = "1.0.0" ) ]
24082393#[ derive( Debug ) ]
24092394pub struct Bytes < R > {
@@ -2433,7 +2418,7 @@ impl<R: Read> Iterator for Bytes<R> {
24332418/// This struct is generally created by calling [`split`] on a `BufRead`.
24342419/// Please see the documentation of [`split`] for more details.
24352420///
2436- /// [`split`]: trait. BufRead.html#method. split
2421+ /// [`split`]: BufRead:: split
24372422#[ stable( feature = "rust1" , since = "1.0.0" ) ]
24382423#[ derive( Debug ) ]
24392424pub struct Split < B > {
@@ -2465,7 +2450,7 @@ impl<B: BufRead> Iterator for Split<B> {
24652450/// This struct is generally created by calling [`lines`] on a `BufRead`.
24662451/// Please see the documentation of [`lines`] for more details.
24672452///
2468- /// [`lines`]: trait. BufRead.html#method. lines
2453+ /// [`lines`]: BufRead:: lines
24692454#[ stable( feature = "rust1" , since = "1.0.0" ) ]
24702455#[ derive( Debug ) ]
24712456pub struct Lines < B > {
0 commit comments