diff options
| author | Mikhail Zabaluev <mikhail.zabaluev@gmail.com> | 2015-05-09 18:57:26 +0300 |
|---|---|---|
| committer | Mikhail Zabaluev <mikhail.zabaluev@gmail.com> | 2015-05-29 22:23:46 +0300 |
| commit | 1d67cef6d2791511c467ea330cb54660e6aa703d (patch) | |
| tree | 351b9858c403fd262dd6a6ea454652dbf7e400e2 /src/libstd/sys/windows | |
| parent | 2d447e40e29bbb47120dd01b3d25b2510b345284 (diff) | |
| download | rust-1d67cef6d2791511c467ea330cb54660e6aa703d.tar.gz rust-1d67cef6d2791511c467ea330cb54660e6aa703d.zip | |
std::io: New ErrorKind value InvalidData
This takes the cases from InvalidInput where a data format error was encountered. This is different from the documented semantics of InvalidInput, which more likely indicate a programming error.
Diffstat (limited to 'src/libstd/sys/windows')
| -rw-r--r-- | src/libstd/sys/windows/stdio.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/sys/windows/stdio.rs b/src/libstd/sys/windows/stdio.rs index 03547165f5d..e56722a189d 100644 --- a/src/libstd/sys/windows/stdio.rs +++ b/src/libstd/sys/windows/stdio.rs @@ -170,5 +170,5 @@ impl Output { } fn invalid_encoding() -> io::Error { - io::Error::new(io::ErrorKind::InvalidInput, "text was not valid unicode") + io::Error::new(io::ErrorKind::InvalidData, "text was not valid unicode") } |
