Skip to content

Commit

Permalink
Merge pull request #777 from striezel-stash/fix-typos
Browse files Browse the repository at this point in the history
fix typos
  • Loading branch information
dtolnay committed May 15, 2021
2 parents 892e2a8 + a56df5c commit 8604ef9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/iter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pub struct LineColIterator<I> {
/// 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.
Expand Down

0 comments on commit 8604ef9

Please sign in to comment.