@@ -1212,7 +1212,7 @@ impl Initializer {
1212
1212
///
1213
1213
/// [`write`]: Self::write
1214
1214
/// [`flush`]: Self::flush
1215
- /// [`std::io`]: index.html
1215
+ /// [`std::io`]: self
1216
1216
///
1217
1217
/// # Examples
1218
1218
///
@@ -1590,8 +1590,6 @@ pub trait Seek {
1590
1590
/// # Errors
1591
1591
///
1592
1592
/// Seeking to a negative offset is considered an error.
1593
- ///
1594
- /// [`SeekFrom::Start`]: enum.SeekFrom.html#variant.Start
1595
1593
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1596
1594
fn seek ( & mut self , pos : SeekFrom ) -> Result < u64 > ;
1597
1595
@@ -1678,8 +1676,6 @@ pub trait Seek {
1678
1676
/// Enumeration of possible methods to seek within an I/O object.
1679
1677
///
1680
1678
/// It is used by the [`Seek`] trait.
1681
- ///
1682
- /// [`Seek`]: trait.Seek.html
1683
1679
#[ derive( Copy , PartialEq , Eq , Clone , Debug ) ]
1684
1680
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1685
1681
pub enum SeekFrom {
@@ -1759,11 +1755,9 @@ fn read_until<R: BufRead + ?Sized>(r: &mut R, delim: u8, buf: &mut Vec<u8>) -> R
1759
1755
/// For example, [`File`] implements [`Read`], but not `BufRead`.
1760
1756
/// [`BufReader`] to the rescue!
1761
1757
///
1762
- /// [`BufReader`]: struct.BufReader.html
1763
1758
/// [`File`]: crate::fs::File
1764
1759
/// [`read_line`]: Self::read_line
1765
1760
/// [`lines`]: Self::lines
1766
- /// [`Read`]: trait.Read.html
1767
1761
///
1768
1762
/// ```no_run
1769
1763
/// use std::io::{self, BufReader};
@@ -1869,16 +1863,13 @@ pub trait BufRead: Read {
1869
1863
/// present in `buf` and its length will have been adjusted appropriately.
1870
1864
///
1871
1865
/// [`fill_buf`]: Self::fill_buf
1872
- /// [`ErrorKind::Interrupted`]: enum.ErrorKind.html#variant.Interrupted
1873
1866
///
1874
1867
/// # Examples
1875
1868
///
1876
1869
/// [`std::io::Cursor`][`Cursor`] is a type that implements `BufRead`. In
1877
1870
/// this example, we use [`Cursor`] to read all the bytes in a byte slice
1878
1871
/// in hyphen delimited segments:
1879
1872
///
1880
- /// [`Cursor`]: struct.Cursor.html
1881
- ///
1882
1873
/// ```
1883
1874
/// use std::io::{self, BufRead};
1884
1875
///
@@ -1940,8 +1931,6 @@ pub trait BufRead: Read {
1940
1931
/// [`std::io::Cursor`][`Cursor`] is a type that implements `BufRead`. In
1941
1932
/// this example, we use [`Cursor`] to read all the lines in a byte slice:
1942
1933
///
1943
- /// [`Cursor`]: struct.Cursor.html
1944
- ///
1945
1934
/// ```
1946
1935
/// use std::io::{self, BufRead};
1947
1936
///
@@ -1996,8 +1985,6 @@ pub trait BufRead: Read {
1996
1985
/// this example, we use [`Cursor`] to iterate over all hyphen delimited
1997
1986
/// segments in a byte slice
1998
1987
///
1999
- /// [`Cursor`]: struct.Cursor.html
2000
- ///
2001
1988
/// ```
2002
1989
/// use std::io::{self, BufRead};
2003
1990
///
@@ -2046,8 +2033,6 @@ pub trait BufRead: Read {
2046
2033
/// # Errors
2047
2034
///
2048
2035
/// 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
2051
2036
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
2052
2037
fn lines ( self ) -> Lines < Self >
2053
2038
where
@@ -2062,7 +2047,7 @@ pub trait BufRead: Read {
2062
2047
/// This struct is generally created by calling [`chain`] on a reader.
2063
2048
/// Please see the documentation of [`chain`] for more details.
2064
2049
///
2065
- /// [`chain`]: trait. Read.html#method. chain
2050
+ /// [`chain`]: Read:: chain
2066
2051
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
2067
2052
pub struct Chain < T , U > {
2068
2053
first : T ,
@@ -2204,7 +2189,7 @@ impl<T: BufRead, U: BufRead> BufRead for Chain<T, U> {
2204
2189
/// This struct is generally created by calling [`take`] on a reader.
2205
2190
/// Please see the documentation of [`take`] for more details.
2206
2191
///
2207
- /// [`take`]: trait. Read.html#method. take
2192
+ /// [`take`]: Read:: take
2208
2193
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
2209
2194
#[ derive( Debug ) ]
2210
2195
pub struct Take < T > {
@@ -2403,7 +2388,7 @@ impl<T: BufRead> BufRead for Take<T> {
2403
2388
/// This struct is generally created by calling [`bytes`] on a reader.
2404
2389
/// Please see the documentation of [`bytes`] for more details.
2405
2390
///
2406
- /// [`bytes`]: trait. Read.html#method. bytes
2391
+ /// [`bytes`]: Read:: bytes
2407
2392
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
2408
2393
#[ derive( Debug ) ]
2409
2394
pub struct Bytes < R > {
@@ -2433,7 +2418,7 @@ impl<R: Read> Iterator for Bytes<R> {
2433
2418
/// This struct is generally created by calling [`split`] on a `BufRead`.
2434
2419
/// Please see the documentation of [`split`] for more details.
2435
2420
///
2436
- /// [`split`]: trait. BufRead.html#method. split
2421
+ /// [`split`]: BufRead:: split
2437
2422
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
2438
2423
#[ derive( Debug ) ]
2439
2424
pub struct Split < B > {
@@ -2465,7 +2450,7 @@ impl<B: BufRead> Iterator for Split<B> {
2465
2450
/// This struct is generally created by calling [`lines`] on a `BufRead`.
2466
2451
/// Please see the documentation of [`lines`] for more details.
2467
2452
///
2468
- /// [`lines`]: trait. BufRead.html#method. lines
2453
+ /// [`lines`]: BufRead:: lines
2469
2454
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
2470
2455
#[ derive( Debug ) ]
2471
2456
pub struct Lines < B > {
0 commit comments