From a56df5c07c74efdff083359040f877113615943d Mon Sep 17 00:00:00 2001 From: Dirk Stolle Date: Sat, 15 May 2021 15:11:39 +0200 Subject: [PATCH] fix typos --- src/error.rs | 2 +- src/iter.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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.