We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents aca2057 + 7c06c5a commit 3a407b6Copy full SHA for 3a407b6
src/libstd/io/error.rs
@@ -125,6 +125,9 @@ pub enum ErrorKind {
125
/// Unlike `InvalidInput`, this typically means that the operation
126
/// parameters were valid, however the error was caused by malformed
127
/// input data.
128
+ ///
129
+ /// For example, a function that reads a file into a string will error with
130
+ /// `InvalidData` if the file's contents are not valid UTF-8.
131
#[stable(feature = "io_invalid_data", since = "1.2.0")]
132
InvalidData,
133
/// The I/O operation's timeout expired, causing it to be canceled.
0 commit comments