diff options
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/slice.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/slice.rs b/src/util/slice.rs index 2134069..14fd527 100644 --- a/src/util/slice.rs +++ b/src/util/slice.rs @@ -22,7 +22,7 @@ impl<'a> Position<'a> { /// When `micromark` is used, this function never panics. pub fn from_exit_event(events: &'a [Event], index: usize) -> Position<'a> { let exit = &events[index]; - assert_eq!( + debug_assert_eq!( exit.event_type, EventType::Exit, "expected `from_exit_event` to be called on `exit` event" |