Skip to content

Commit ac0ee51

Browse files
Add missing links in io::Error docs
1 parent 9e25984 commit ac0ee51

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

Diff for: src/libstd/io/error.rs

+11-7
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,21 @@ use convert::From;
1717
/// A specialized [`Result`](../result/enum.Result.html) type for I/O
1818
/// operations.
1919
///
20-
/// This type is broadly used across `std::io` for any operation which may
20+
/// This type is broadly used across [`std::io`] for any operation which may
2121
/// produce an error.
2222
///
23-
/// This typedef is generally used to avoid writing out `io::Error` directly and
24-
/// is otherwise a direct mapping to `Result`.
23+
/// This typedef is generally used to avoid writing out [`io::Error`] directly and
24+
/// is otherwise a direct mapping to [`Result`].
2525
///
26-
/// While usual Rust style is to import types directly, aliases of `Result`
27-
/// often are not, to make it easier to distinguish between them. `Result` is
28-
/// generally assumed to be `std::result::Result`, and so users of this alias
26+
/// While usual Rust style is to import types directly, aliases of [`Result`]
27+
/// often are not, to make it easier to distinguish between them. [`Result`] is
28+
/// generally assumed to be [`std::result::Result`][`Result`], and so users of this alias
2929
/// will generally use `io::Result` instead of shadowing the prelude's import
30-
/// of `std::result::Result`.
30+
/// of [`std::result::Result`][`Result`].
31+
///
32+
/// [`std::io`]: ../io/index.html
33+
/// [`io::Error`]: ../io/struct.Error.html
34+
/// [`Result`]: ../result/enum.Result.html
3135
///
3236
/// # Examples
3337
///

0 commit comments

Comments
 (0)