Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
binarycode committed May 8, 2021
1 parent acc61df commit 729f085
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/byte_error.rs
Expand Up @@ -60,12 +60,12 @@ impl Display for UnitIncorrectError {

if self.also_expect_no_character {
f.write_fmt(format_args!(
", {:?} or no character is excepted.",
", {:?} or no character is expected.",
self.expected_characters[expected_characters_length - 1]
))
} else {
f.write_fmt(format_args!(
" or {:?} is excepted.",
" or {:?} is expected.",
self.expected_characters[expected_characters_length - 1]
))
}
Expand Down

0 comments on commit 729f085

Please sign in to comment.