File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -124,23 +124,28 @@ pub enum ErrorKind {
124124 InvalidInput ,
125125 /// Data not valid for the operation were encountered.
126126 ///
127- /// Unlike `InvalidInput`, this typically means that the operation
127+ /// Unlike [ `InvalidInput`] , this typically means that the operation
128128 /// parameters were valid, however the error was caused by malformed
129129 /// input data.
130130 ///
131131 /// For example, a function that reads a file into a string will error with
132132 /// `InvalidData` if the file's contents are not valid UTF-8.
133+ ///
134+ /// [`InvalidInput`]: #variant.InvalidInput
133135 #[ stable( feature = "io_invalid_data" , since = "1.2.0" ) ]
134136 InvalidData ,
135137 /// The I/O operation's timeout expired, causing it to be canceled.
136138 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
137139 TimedOut ,
138140 /// 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)`] .
140142 ///
141143 /// This typically means that an operation could only succeed if it wrote a
142144 /// particular number of bytes but only a smaller number of bytes could be
143145 /// written.
146+ ///
147+ /// [`write()`]: ../../std/io/trait.Write.html#tymethod.write
148+ /// [`Ok(0)`]: ../../std/io/type.Result.html
144149 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
145150 WriteZero ,
146151 /// This operation was interrupted.
You can’t perform that action at this time.
0 commit comments