Skip to content

Commit bc83676

Browse files
committed
Switch to intra-doc links in std/io/mod.rs
1 parent ef1d58e commit bc83676

File tree

1 file changed

+5
-21
lines changed

1 file changed

+5
-21
lines changed

library/std/src/io/mod.rs

Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1212,7 +1212,6 @@ impl Initializer {
12121212
///
12131213
/// [`write`]: Self::write
12141214
/// [`flush`]: Self::flush
1215-
/// [`std::io`]: index.html
12161215
///
12171216
/// # Examples
12181217
///
@@ -1590,8 +1589,6 @@ pub trait Seek {
15901589
/// # Errors
15911590
///
15921591
/// Seeking to a negative offset is considered an error.
1593-
///
1594-
/// [`SeekFrom::Start`]: enum.SeekFrom.html#variant.Start
15951592
#[stable(feature = "rust1", since = "1.0.0")]
15961593
fn seek(&mut self, pos: SeekFrom) -> Result<u64>;
15971594

@@ -1678,8 +1675,6 @@ pub trait Seek {
16781675
/// Enumeration of possible methods to seek within an I/O object.
16791676
///
16801677
/// It is used by the [`Seek`] trait.
1681-
///
1682-
/// [`Seek`]: trait.Seek.html
16831678
#[derive(Copy, PartialEq, Eq, Clone, Debug)]
16841679
#[stable(feature = "rust1", since = "1.0.0")]
16851680
pub enum SeekFrom {
@@ -1759,11 +1754,9 @@ fn read_until<R: BufRead + ?Sized>(r: &mut R, delim: u8, buf: &mut Vec<u8>) -> R
17591754
/// For example, [`File`] implements [`Read`], but not `BufRead`.
17601755
/// [`BufReader`] to the rescue!
17611756
///
1762-
/// [`BufReader`]: struct.BufReader.html
17631757
/// [`File`]: crate::fs::File
17641758
/// [`read_line`]: Self::read_line
17651759
/// [`lines`]: Self::lines
1766-
/// [`Read`]: trait.Read.html
17671760
///
17681761
/// ```no_run
17691762
/// use std::io::{self, BufReader};
@@ -1869,16 +1862,13 @@ pub trait BufRead: Read {
18691862
/// present in `buf` and its length will have been adjusted appropriately.
18701863
///
18711864
/// [`fill_buf`]: Self::fill_buf
1872-
/// [`ErrorKind::Interrupted`]: enum.ErrorKind.html#variant.Interrupted
18731865
///
18741866
/// # Examples
18751867
///
18761868
/// [`std::io::Cursor`][`Cursor`] is a type that implements `BufRead`. In
18771869
/// this example, we use [`Cursor`] to read all the bytes in a byte slice
18781870
/// in hyphen delimited segments:
18791871
///
1880-
/// [`Cursor`]: struct.Cursor.html
1881-
///
18821872
/// ```
18831873
/// use std::io::{self, BufRead};
18841874
///
@@ -1940,8 +1930,6 @@ pub trait BufRead: Read {
19401930
/// [`std::io::Cursor`][`Cursor`] is a type that implements `BufRead`. In
19411931
/// this example, we use [`Cursor`] to read all the lines in a byte slice:
19421932
///
1943-
/// [`Cursor`]: struct.Cursor.html
1944-
///
19451933
/// ```
19461934
/// use std::io::{self, BufRead};
19471935
///
@@ -1996,8 +1984,6 @@ pub trait BufRead: Read {
19961984
/// this example, we use [`Cursor`] to iterate over all hyphen delimited
19971985
/// segments in a byte slice
19981986
///
1999-
/// [`Cursor`]: struct.Cursor.html
2000-
///
20011987
/// ```
20021988
/// use std::io::{self, BufRead};
20031989
///
@@ -2046,8 +2032,6 @@ pub trait BufRead: Read {
20462032
/// # Errors
20472033
///
20482034
/// 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
20512035
#[stable(feature = "rust1", since = "1.0.0")]
20522036
fn lines(self) -> Lines<Self>
20532037
where
@@ -2062,7 +2046,7 @@ pub trait BufRead: Read {
20622046
/// This struct is generally created by calling [`chain`] on a reader.
20632047
/// Please see the documentation of [`chain`] for more details.
20642048
///
2065-
/// [`chain`]: trait.Read.html#method.chain
2049+
/// [`chain`]: Read::chain
20662050
#[stable(feature = "rust1", since = "1.0.0")]
20672051
pub struct Chain<T, U> {
20682052
first: T,
@@ -2204,7 +2188,7 @@ impl<T: BufRead, U: BufRead> BufRead for Chain<T, U> {
22042188
/// This struct is generally created by calling [`take`] on a reader.
22052189
/// Please see the documentation of [`take`] for more details.
22062190
///
2207-
/// [`take`]: trait.Read.html#method.take
2191+
/// [`take`]: Read::take
22082192
#[stable(feature = "rust1", since = "1.0.0")]
22092193
#[derive(Debug)]
22102194
pub struct Take<T> {
@@ -2403,7 +2387,7 @@ impl<T: BufRead> BufRead for Take<T> {
24032387
/// This struct is generally created by calling [`bytes`] on a reader.
24042388
/// Please see the documentation of [`bytes`] for more details.
24052389
///
2406-
/// [`bytes`]: trait.Read.html#method.bytes
2390+
/// [`bytes`]: Read::bytes
24072391
#[stable(feature = "rust1", since = "1.0.0")]
24082392
#[derive(Debug)]
24092393
pub struct Bytes<R> {
@@ -2433,7 +2417,7 @@ impl<R: Read> Iterator for Bytes<R> {
24332417
/// This struct is generally created by calling [`split`] on a `BufRead`.
24342418
/// Please see the documentation of [`split`] for more details.
24352419
///
2436-
/// [`split`]: trait.BufRead.html#method.split
2420+
/// [`split`]: BufRead::split
24372421
#[stable(feature = "rust1", since = "1.0.0")]
24382422
#[derive(Debug)]
24392423
pub struct Split<B> {
@@ -2465,7 +2449,7 @@ impl<B: BufRead> Iterator for Split<B> {
24652449
/// This struct is generally created by calling [`lines`] on a `BufRead`.
24662450
/// Please see the documentation of [`lines`] for more details.
24672451
///
2468-
/// [`lines`]: trait.BufRead.html#method.lines
2452+
/// [`lines`]: BufRead::lines
24692453
#[stable(feature = "rust1", since = "1.0.0")]
24702454
#[derive(Debug)]
24712455
pub struct Lines<B> {

0 commit comments

Comments
 (0)