diff --git a/src/error.rs b/src/error.rs index 7dcdd81c9..4219d324f 100644 --- a/src/error.rs +++ b/src/error.rs @@ -234,7 +234,7 @@ pub(crate) enum ErrorCode { /// JSON has non-whitespace trailing characters after the value. TrailingCharacters, - /// Unexpected end of hex excape. + /// Unexpected end of hex escape. UnexpectedEndOfHexEscape, /// Encountered nesting of JSON maps and arrays more than 128 layers deep. diff --git a/src/iter.rs b/src/iter.rs index c14026f73..9792916dc 100644 --- a/src/iter.rs +++ b/src/iter.rs @@ -12,7 +12,7 @@ pub struct LineColIterator { /// The column is 0 immediately after a newline character has been read. col: usize, - /// Byte offset of the start of the current line. This is the sum of lenghts + /// Byte offset of the start of the current line. This is the sum of lengths /// of all previous lines. Keeping track of things this way allows efficient /// computation of the current line, column, and byte offset while only /// updating one of the counters in `next()` in the common case.