diff --git a/src/byte_error.rs b/src/byte_error.rs index 1bc3cc5..e2645c5 100644 --- a/src/byte_error.rs +++ b/src/byte_error.rs @@ -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] )) }