Skip to content

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

chore: rename `SupposeTo` to `SupposedTo`

hippietrailf14b485d0c9a
diff --git a/harper-core/src/linting/lint_group.rs b/harper-core/src/linting/lint_group.rs
index d97679fd3..103ce69be 100644
--- a/harper-core/src/linting/lint_group.rs
+++ b/harper-core/src/linting/lint_group.rs
@@ -18,7 +18,7 @@ use super::multiple_sequential_pronouns::MultipleSequentialPronouns;
use super::number_suffix_capitalization::NumberSuffixCapitalization;
use super::phrase_corrections::{
AndAlike, BadRap, BatedBreath, BeckAndCall, ChangeTack, EnMasse, HumanLife, HungerPang,
- LetAlone, LoAndBehold, NeedHelp, NoLonger, OfCourse, SneakingSuspicion, SupposeTo,
+ LetAlone, LoAndBehold, NeedHelp, NoLonger, OfCourse, SneakingSuspicion, SupposedTo,
ThatChallenged, TurnItOff,
};
use super::plural_conjugate::PluralConjugate;
@@ -217,7 +217,7 @@ create_lint_group_config!(
LetAlone => true,
LoAndBehold => true,
SneakingSuspicion => true,
- SupposeTo => true
+ SupposedTo => true
);
impl<T: Dictionary + Default> Default for LintGroup<T> {
diff --git a/harper-core/src/linting/mod.rs b/harper-core/src/linting/mod.rs
index d30137ea8..369f8505e 100644
--- a/harper-core/src/linting/mod.rs
+++ b/harper-core/src/linting/mod.rs
@@ -67,7 +67,7 @@ pub use oxford_comma::OxfordComma;
pub use pattern_linter::PatternLinter;
pub use phrase_corrections::{
AndAlike, BadRap, BatedBreath, BeckAndCall, ChangeTack, EnMasse, HumanLife, HungerPang,
- LetAlone, LoAndBehold, NeedHelp, NoLonger, OfCourse, SneakingSuspicion, SupposeTo,
+ LetAlone, LoAndBehold, NeedHelp, NoLonger, OfCourse, SneakingSuspicion, SupposedTo,
ThatChallenged, TurnItOff,
};
pub use plural_conjugate::PluralConjugate;
diff --git a/harper-core/src/linting/phrase_corrections.rs b/harper-core/src/linting/phrase_corrections.rs
index 18ede7d8e..f0d9ab94f 100644
--- a/harper-core/src/linting/phrase_corrections.rs
+++ b/harper-core/src/linting/phrase_corrections.rs
@@ -83,7 +83,7 @@ create_linter_for_phrase!(EnMasse, "en masse", 1);
create_linter_for_phrase!(LetAlone, "let alone", 1);
create_linter_for_phrase!(LoAndBehold, "lo and behold", 2);
create_linter_for_phrase!(SneakingSuspicion, "sneaking suspicion", 3);
-create_linter_for_phrase!(SupposeTo, "supposed to", 1);
+create_linter_for_phrase!(SupposedTo, "supposed to", 1);
#[cfg(test)]
mod tests {
@@ -91,7 +91,7 @@ mod tests {
use super::{
BadRap, BatedBreath, ChangeTack, EnMasse, HungerPang, LetAlone, LoAndBehold, OfCourse,
- SneakingSuspicion, SupposeTo, TurnItOff,
+ SneakingSuspicion, SupposedTo, TurnItOff,
};
#[test]
@@ -183,6 +183,6 @@ mod tests {
#[test]
fn supposed_to() {
- assert_suggestion_result("suppose to", SupposeTo::default(), "supposed to");
+ assert_suggestion_result("suppose to", SupposedTo::default(), "supposed to");
}
}