diff --git a/library/std/src/io/error.rs b/library/std/src/io/error.rs index 6ca8e0b506c..1f9a12c4272 100644 --- a/library/std/src/io/error.rs +++ b/library/std/src/io/error.rs @@ -164,14 +164,6 @@ pub enum ErrorKind { #[stable(feature = "rust1", since = "1.0.0")] Interrupted, - /// An error returned when an operation could not be completed because an - /// "end of file" was reached prematurely. - /// - /// This typically means that an operation could only succeed if it read a - /// particular number of bytes but only a smaller number of bytes could be - /// read. - #[stable(feature = "read_exact", since = "1.6.0")] - UnexpectedEof, /// A custom error that does not fall under any other I/O error kind. /// /// This can be used to construct your own [`Error`]s that do not match any @@ -185,6 +177,15 @@ pub enum ErrorKind { #[stable(feature = "rust1", since = "1.0.0")] Other, + /// An error returned when an operation could not be completed because an + /// "end of file" was reached prematurely. + /// + /// This typically means that an operation could only succeed if it read a + /// particular number of bytes but only a smaller number of bytes could be + /// read. + #[stable(feature = "read_exact", since = "1.6.0")] + UnexpectedEof, + /// This operation is unsupported on this platform. /// /// This means that the operation can never succeed.