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