aboutsummaryrefslogtreecommitdiffstats
path: root/src/event.rs
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-09-12 17:18:30 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-09-12 17:18:30 +0200
commit57c3cda9f98e70a9f614a22eb6d518051cc60b19 (patch)
tree7067e1f12cc8ca3c8002ae509f3b327d84b2ac04 /src/event.rs
parentf7d7507af61a0f253fdb50cecd20885b72d16b13 (diff)
downloadmarkdown-rs-57c3cda9f98e70a9f614a22eb6d518051cc60b19.tar.gz
markdown-rs-57c3cda9f98e70a9f614a22eb6d518051cc60b19.tar.bz2
markdown-rs-57c3cda9f98e70a9f614a22eb6d518051cc60b19.zip
Fix gfm email autolink literals overlapping
Diffstat (limited to 'src/event.rs')
-rw-r--r--src/event.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/event.rs b/src/event.rs
index 6ea52fb..de3f95f 100644
--- a/src/event.rs
+++ b/src/event.rs
@@ -3424,7 +3424,7 @@ impl Point {
/// point, to `index.`
pub fn shift_to(&self, bytes: &[u8], index: usize) -> Point {
let mut next = self.clone();
- debug_assert!(index > next.index, "expect");
+ debug_assert!(index > next.index, "expected to shift forward");
while next.index < index {
match bytes[next.index] {