Skip to content

Commit

Permalink
Give first footnote def priority over last
Browse files Browse the repository at this point in the history
  • Loading branch information
notriddle committed Nov 22, 2023
1 parent 9f509c2 commit 7cc429e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fuzz/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,7 @@ pub fn normalize(events: Vec<Event<'_>>) -> Vec<Event<'_>> {
Event::Start(Tag::FootnoteDefinition(name)) => name.clone(),
_ => panic!("this should not be possible {footnote:?}", footnote = footnote),
};
footnotes.insert(name.to_string(), footnote);
footnotes.entry(name.to_string()).or_insert(footnote);
}

// Other events are passed through.
Expand Down

0 comments on commit 7cc429e

Please sign in to comment.