File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -124,23 +124,28 @@ pub enum ErrorKind {
124
124
InvalidInput ,
125
125
/// Data not valid for the operation were encountered.
126
126
///
127
- /// Unlike `InvalidInput`, this typically means that the operation
127
+ /// Unlike [ `InvalidInput`] , this typically means that the operation
128
128
/// parameters were valid, however the error was caused by malformed
129
129
/// input data.
130
130
///
131
131
/// For example, a function that reads a file into a string will error with
132
132
/// `InvalidData` if the file's contents are not valid UTF-8.
133
+ ///
134
+ /// [`InvalidInput`]: #variant.InvalidInput
133
135
#[ stable( feature = "io_invalid_data" , since = "1.2.0" ) ]
134
136
InvalidData ,
135
137
/// The I/O operation's timeout expired, causing it to be canceled.
136
138
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
137
139
TimedOut ,
138
140
/// An error returned when an operation could not be completed because a
139
- /// call to `write` returned `Ok(0)`.
141
+ /// call to [ `write()`] returned [ `Ok(0)`] .
140
142
///
141
143
/// This typically means that an operation could only succeed if it wrote a
142
144
/// particular number of bytes but only a smaller number of bytes could be
143
145
/// written.
146
+ ///
147
+ /// [`write()`]: ../../std/io/trait.Write.html#tymethod.write
148
+ /// [`Ok(0)`]: ../../std/io/type.Result.html
144
149
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
145
150
WriteZero ,
146
151
/// This operation was interrupted.
You can’t perform that action at this time.
0 commit comments