Skip to content

Commit

Permalink
Improve std::io::ErrorKind
Browse files Browse the repository at this point in the history
Hopefully make this distinction a little more clear.

Fixes #27637
  • Loading branch information
steveklabnik committed Aug 19, 2015
1 parent c6291e0 commit 7c06c5a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/libstd/io/error.rs
Expand Up @@ -125,6 +125,9 @@ pub enum ErrorKind {
/// Unlike `InvalidInput`, this typically means that the operation
/// parameters were valid, however the error was caused by malformed
/// input data.
///
/// For example, a function that reads a file into a string will error with
/// `InvalidData` if the file's contents are not valid UTF-8.
#[stable(feature = "io_invalid_data", since = "1.2.0")]
InvalidData,
/// The I/O operation's timeout expired, causing it to be canceled.
Expand Down

0 comments on commit 7c06c5a

Please sign in to comment.