Skip to content

Commit

Permalink
fix: filter statement was inverted
Browse files Browse the repository at this point in the history
  • Loading branch information
drahnr committed Jun 3, 2020
1 parent 5dc7702 commit 2b41e9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/checker/hunspell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ impl Checker for HunspellChecker {
let replacements = hunspell
.suggest(word)
.into_iter()
.filter(|x| x.len() <= 1)
.filter(|x| x.len() >= 1)
.collect::<Vec<_>>();

for (literal, span) in plain.linear_range_to_spans(range.clone()) {
Expand Down

0 comments on commit 2b41e9d

Please sign in to comment.