Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
fix: two spelling mistakes based on homophones
hippietrail4d019e3f014c
diff --git a/harper-core/src/linting/sentence_capitalization.rs b/harper-core/src/linting/sentence_capitalization.rsindex 650d7255e..bbf4a56e4 100644--- a/harper-core/src/linting/sentence_capitalization.rs+++ b/harper-core/src/linting/sentence_capitalization.rs@@ -136,7 +136,7 @@ mod tests {}#[test]- fn unphased_unlintable() {+ fn unfazed_unlintable() {assert_lint_count("the linter should not be affected by `this` unlintable.",SentenceCapitalization,@@ -145,7 +145,7 @@ mod tests {}#[test]- fn unphased_ellipsis() {+ fn unfazed_ellipsis() {assert_lint_count("the linter should not be affected by... that ellipsis.",SentenceCapitalization,@@ -154,7 +154,7 @@ mod tests {}#[test]- fn unphased_comma() {+ fn unfazed_comma() {assert_lint_count("the linter should not be affected by, that comma.",SentenceCapitalization,diff --git a/harper-core/src/punctuation.rs b/harper-core/src/punctuation.rsindex a625e80a2..2936d34e3 100644--- a/harper-core/src/punctuation.rs+++ b/harper-core/src/punctuation.rs@@ -68,7 +68,7 @@ pub enum Punctuation {/// `@`At,/// `^`- Carrot,+ Caret,/// `+`Plus,Currency(Currency),@@ -110,7 +110,7 @@ impl Punctuation {'–' => Punctuation::EnDash,'—' => Punctuation::EmDash,'…' => Punctuation::Ellipsis,- '^' => Punctuation::Carrot,+ '^' => Punctuation::Caret,'+' => Punctuation::Plus,'|' => Punctuation::Pipe,'_' => Punctuation::Underscore,