Skip to content

Offline, privacy-first grammar checker. Fast, open-source, Rust-powered

fix(spelling): pedant = me

Elijah Potter1ba1b42d834e
diff --git a/harper-core/src/spell/full_dictionary.rs b/harper-core/src/spell/full_dictionary.rs
index 2c6825502..43d318121 100644
--- a/harper-core/src/spell/full_dictionary.rs
+++ b/harper-core/src/spell/full_dictionary.rs
@@ -189,7 +189,7 @@ impl Dictionary for FullDictionary {
};
let longest_word_len = misspelled_charslice.len() + max_distance as usize;
- // Get canidate words
+ // Get candidate words
let words_to_search = (shortest_word_len..=longest_word_len)
.rev()
.flat_map(|len| self.words_with_len_iter(len));