@@ -36,15 +36,16 @@ impl Error {
3636 /// The first character in the input and any characters immediately
3737 /// following a newline character are in column 1.
3838 ///
39- /// Note that errors may occur in column 0, for example if a read from an IO
40- /// stream fails immediately following a previously read newline character.
39+ /// Note that errors may occur in column 0, for example if a read from an
40+ /// I/O stream fails immediately following a previously read newline
41+ /// character.
4142 pub fn column ( & self ) -> usize {
4243 self . err . column
4344 }
4445
4546 /// Categorizes the cause of this error.
4647 ///
47- /// - `Category::Io` - failure to read or write bytes on an IO stream
48+ /// - `Category::Io` - failure to read or write bytes on an I/O stream
4849 /// - `Category::Syntax` - input that is not syntactically valid JSON
4950 /// - `Category::Data` - input data that is semantically incorrect
5051 /// - `Category::Eof` - unexpected end of the input data
@@ -76,7 +77,7 @@ impl Error {
7677 }
7778
7879 /// Returns true if this error was caused by a failure to read or write
79- /// bytes on an IO stream.
80+ /// bytes on an I/O stream.
8081 pub fn is_io ( & self ) -> bool {
8182 self . classify ( ) == Category :: Io
8283 }
@@ -109,7 +110,7 @@ impl Error {
109110/// Categorizes the cause of a `serde_json::Error`.
110111#[ derive( Copy , Clone , PartialEq , Eq , Debug ) ]
111112pub enum Category {
112- /// The error was caused by a failure to read or write bytes on an IO
113+ /// The error was caused by a failure to read or write bytes on an I/O
113114 /// stream.
114115 Io ,
115116
@@ -134,8 +135,8 @@ pub enum Category {
134135impl From < Error > for io:: Error {
135136 /// Convert a `serde_json::Error` into an `io::Error`.
136137 ///
137- /// JSON syntax and data errors are turned into `InvalidData` IO errors.
138- /// EOF errors are turned into `UnexpectedEof` IO errors.
138+ /// JSON syntax and data errors are turned into `InvalidData` I/O errors.
139+ /// EOF errors are turned into `UnexpectedEof` I/O errors.
139140 ///
140141 /// ```
141142 /// use std::io;
@@ -182,7 +183,7 @@ pub(crate) enum ErrorCode {
182183 /// Catchall for syntax error messages
183184 Message ( Box < str > ) ,
184185
185- /// Some IO error occurred while serializing or deserializing.
186+ /// Some I/O error occurred while serializing or deserializing.
186187 Io ( io:: Error ) ,
187188
188189 /// EOF while parsing a list.
0 commit comments