From c3a4865d3ae4fe89d23037742c3a88e08b0f970d Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Wed, 7 Sep 2022 18:01:16 +0200 Subject: Fix debug message --- src/tokenizer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/tokenizer.rs b/src/tokenizer.rs index 7dbd158..04523b3 100644 --- a/src/tokenizer.rs +++ b/src/tokenizer.rs @@ -440,7 +440,7 @@ impl<'a> Tokenizer<'a> { /// Each state function is expected to call this to signal that this code is /// used, or call a next function. pub fn consume(&mut self) { - debug_assert!(!self.consumed, "expected code to not have been consumed: this might be because `x(code)` instead of `x` was returned"); + debug_assert!(!self.consumed, "expected code to *not* have been consumed: this might be because `State::Retry(x)` instead of `State::Next(x)` was returned"); self.move_one(); self.previous = self.current; -- cgit