@@ -17,17 +17,21 @@ use convert::From;
17
17
/// A specialized [`Result`](../result/enum.Result.html) type for I/O
18
18
/// operations.
19
19
///
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
21
21
/// produce an error.
22
22
///
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`] .
25
25
///
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
29
29
/// 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
31
35
///
32
36
/// # Examples
33
37
///
@@ -47,13 +51,16 @@ use convert::From;
47
51
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
48
52
pub type Result < T > = result:: Result < T , Error > ;
49
53
50
- /// The error type for I/O operations of the `Read`, `Write`, `Seek`, and
54
+ /// The error type for I/O operations of the [ `Read`], [ `Write`], [ `Seek`] , and
51
55
/// associated traits.
52
56
///
53
57
/// Errors mostly originate from the underlying OS, but custom instances of
54
58
/// `Error` can be created with crafted error messages and a particular value of
55
59
/// [`ErrorKind`].
56
60
///
61
+ /// [`Read`]: ../io/trait.Read.html
62
+ /// [`Write`]: ../io/trait.Write.html
63
+ /// [`Seek`]: ../io/trait.Seek.html
57
64
/// [`ErrorKind`]: enum.ErrorKind.html
58
65
#[ derive( Debug ) ]
59
66
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
0 commit comments