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