Skip to content

Commit 6a30319

Browse files
committed
Remove problematic documentation links.
This is a separated commit to be easy to reverse later.
1 parent 9bead2b commit 6a30319

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

‎library/std/src/io/error.rs‎

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,12 @@ use crate::{error, fmt, result, sys};
3131
/// While usual Rust style is to import types directly, aliases of [`Result`]
3232
/// often are not, to make it easier to distinguish between them. [`Result`] is
3333
/// generally assumed to be [`std::result::Result`][`Result`], and so users of this alias
34-
/// will generally use `io::Result` instead of shadowing the [prelude]'s import
34+
/// will generally use `io::Result` instead of shadowing the prelude's import
3535
/// of [`std::result::Result`][`Result`].
3636
///
3737
/// [`std::io`]: crate::io
3838
/// [`io::Error`]: Error
3939
/// [`Result`]: crate::result::Result
40-
/// [prelude]: crate::prelude
4140
///
4241
/// # Examples
4342
///
@@ -58,16 +57,11 @@ use crate::{error, fmt, result, sys};
5857
#[doc(search_unbox)]
5958
pub type Result<T> = result::Result<T, Error>;
6059

61-
/// The error type for I/O operations of the [`Read`], [`Write`], [`Seek`], and
62-
/// associated traits.
60+
/// The error type for I/O operations.
6361
///
6462
/// Errors mostly originate from the underlying OS, but custom instances of
6563
/// `Error` can be created with crafted error messages and a particular value of
6664
/// [`ErrorKind`].
67-
///
68-
/// [`Read`]: crate::io::Read
69-
/// [`Write`]: crate::io::Write
70-
/// [`Seek`]: crate::io::Seek
7165
#[stable(feature = "rust1", since = "1.0.0")]
7266
pub struct Error {
7367
repr: Repr,
@@ -137,7 +131,7 @@ enum ErrorData<C> {
137131
Custom(C),
138132
}
139133

140-
/// The type of raw OS error codes returned by [`Error::raw_os_error`].
134+
/// The type of raw OS error codes.
141135
///
142136
/// This is an [`i32`] on all currently supported platforms, but platforms
143137
/// added in the future (such as UEFI) may use a different primitive type like
@@ -329,13 +323,12 @@ pub enum ErrorKind {
329323
#[stable(feature = "rust1", since = "1.0.0")]
330324
TimedOut,
331325
/// An error returned when an operation could not be completed because a
332-
/// call to [`write`] returned [`Ok(0)`].
326+
/// call to `write` returned [`Ok(0)`].
333327
///
334328
/// This typically means that an operation could only succeed if it wrote a
335329
/// particular number of bytes but only a smaller number of bytes could be
336330
/// written.
337331
///
338-
/// [`write`]: crate::io::Write::write
339332
/// [`Ok(0)`]: Ok
340333
#[stable(feature = "rust1", since = "1.0.0")]
341334
WriteZero,

0 commit comments

Comments
 (0)