Skip to content

Commit 942f909

Browse files
Add missing urls for ErrorKind's variants
1 parent acfe959 commit 942f909

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/libstd/io/error.rs

+7-2
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)