Skip to content

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

chore: unneeded comments, typos in comments (#3409)

Andrew Dunbar8b2b4909bb8e
diff --git a/harper-core/src/linting/a_some_time.rs b/harper-core/src/linting/a_some_time.rs
index 4ae562f84..1ed0a1722 100644
--- a/harper-core/src/linting/a_some_time.rs
+++ b/harper-core/src/linting/a_some_time.rs
@@ -106,7 +106,6 @@ mod tests {
);
}
- // I guess support people is was cheaper than just a some hours of an engineer who can actually fix the platform
#[test]
fn a_some_hours() {
assert_suggestion_result(
diff --git a/harper-core/src/linting/by_accident.rs b/harper-core/src/linting/by_accident.rs
index 34ad4e595..2b0967ee5 100644
--- a/harper-core/src/linting/by_accident.rs
+++ b/harper-core/src/linting/by_accident.rs
@@ -1,8 +1,3 @@
-/*
-let message "Did you mean `by accident`?"
-let description "Incorrect preposition: `by accident` is the idiomatic expression."
- */
-
use crate::{
Lint, Token,
expr::{Expr, SequenceExpr},
diff --git a/harper-core/src/linting/sought_after.rs b/harper-core/src/linting/sought_after.rs
index 29d7b64ae..7885d3f55 100644
--- a/harper-core/src/linting/sought_after.rs
+++ b/harper-core/src/linting/sought_after.rs
@@ -19,8 +19,8 @@ impl Default for SoughtAfter {
"abit", // Typo for "a bit"
"are", // may cause false positive, but few found so far.
"bit",
- // "is" causes many false postivies and disambiguating looks tricky.
- // "maybe" causes many false postivies and disambiguating looks tricky.
+ // "is" causes many false positives and disambiguating looks tricky.
+ // "maybe" causes many false positives and disambiguating looks tricky.
"of", "quiet", // Common typo for "quite".
])),
])
@@ -229,7 +229,6 @@ mod tests {
);
}
- // This part is occasionally sort after and if they were easily available I reckon you'd sell a few easily enough.
#[test]
fn fix_occasionally_sort_after() {
assert_suggestion_result(
@@ -294,7 +293,6 @@ mod tests {
);
}
- // The university that i studied my MBBS from offers the course as well and it is quite sort after for the above said course.
#[test]
fn fix_quite_sort_after() {
assert_suggestion_result(