diff options
author | Titus Wormer <tituswormer@gmail.com> | 2022-09-07 18:01:16 +0200 |
---|---|---|
committer | Titus Wormer <tituswormer@gmail.com> | 2022-09-07 18:01:16 +0200 |
commit | c3a4865d3ae4fe89d23037742c3a88e08b0f970d (patch) | |
tree | 95fe3470c9b2e9d9b67cd6814359a8d259d7549d /src/tokenizer.rs | |
parent | 1d92666865b35341e076efbefddf6e73b5e1542e (diff) | |
download | markdown-rs-c3a4865d3ae4fe89d23037742c3a88e08b0f970d.tar.gz markdown-rs-c3a4865d3ae4fe89d23037742c3a88e08b0f970d.tar.bz2 markdown-rs-c3a4865d3ae4fe89d23037742c3a88e08b0f970d.zip |
Fix debug message
Diffstat (limited to 'src/tokenizer.rs')
-rw-r--r-- | src/tokenizer.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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; |