Fixed some spelling mistakes

This commit is contained in:
Armin Ronacher 2021-02-03 22:57:25 +01:00
parent 81ba51fc3c
commit 452c79bac5
6 changed files with 11 additions and 11 deletions

View file

@ -364,7 +364,7 @@ pub fn get_close_matches<'a, T: DiffableStr + ?Sized>(
let diff = TextDiff::from_slices(&seq1, &seq2);
let ratio = diff.ratio();
if ratio >= cutoff {
// we're putting the word iself in reverse in so that matches with
// we're putting the word itself in reverse in so that matches with
// the same ratio are ordered lexicographically.
matches.push(((ratio * u32::MAX as f32) as u32, Reverse(possibility)));
}