Skip to content

Commit 3c80579

Browse files
authored
Rollup merge of rust-lang#37537 - GuillaumeGomez:error_kind_doc, r=steveklabnik
Add missing urls for ErrorKind's variants r? @steveklabnik
2 parents 1a11cfa + 942f909 commit 3c80579

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
@@ -126,23 +126,28 @@ pub enum ErrorKind {
126126
InvalidInput,
127127
/// Data not valid for the operation were encountered.
128128
///
129-
/// Unlike `InvalidInput`, this typically means that the operation
129+
/// Unlike [`InvalidInput`], this typically means that the operation
130130
/// parameters were valid, however the error was caused by malformed
131131
/// input data.
132132
///
133133
/// For example, a function that reads a file into a string will error with
134134
/// `InvalidData` if the file's contents are not valid UTF-8.
135+
///
136+
/// [`InvalidInput`]: #variant.InvalidInput
135137
#[stable(feature = "io_invalid_data", since = "1.2.0")]
136138
InvalidData,
137139
/// The I/O operation's timeout expired, causing it to be canceled.
138140
#[stable(feature = "rust1", since = "1.0.0")]
139141
TimedOut,
140142
/// 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)`].
142144
///
143145
/// This typically means that an operation could only succeed if it wrote a
144146
/// particular number of bytes but only a smaller number of bytes could be
145147
/// written.
148+
///
149+
/// [`write()`]: ../../std/io/trait.Write.html#tymethod.write
150+
/// [`Ok(0)`]: ../../std/io/type.Result.html
146151
#[stable(feature = "rust1", since = "1.0.0")]
147152
WriteZero,
148153
/// This operation was interrupted.

0 commit comments

Comments
 (0)