aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-09-07 18:01:16 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-09-07 18:01:16 +0200
commitc3a4865d3ae4fe89d23037742c3a88e08b0f970d (patch)
tree95fe3470c9b2e9d9b67cd6814359a8d259d7549d /src
parent1d92666865b35341e076efbefddf6e73b5e1542e (diff)
downloadmarkdown-rs-c3a4865d3ae4fe89d23037742c3a88e08b0f970d.tar.gz
markdown-rs-c3a4865d3ae4fe89d23037742c3a88e08b0f970d.tar.bz2
markdown-rs-c3a4865d3ae4fe89d23037742c3a88e08b0f970d.zip
Fix debug message
Diffstat (limited to 'src')
-rw-r--r--src/tokenizer.rs2
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;