Skip to content

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

style(#160): remove outdated comment

Grant Lemons1f74f300ca76
diff --git a/harper-core/src/parsers/cases.rs b/harper-core/src/parsers/cases.rs
index b4c40cb0a..336d8e8f6 100644
--- a/harper-core/src/parsers/cases.rs
+++ b/harper-core/src/parsers/cases.rs
@@ -62,7 +62,6 @@ impl Parser for Cases {
.filter(|(_, _, _, st)| self.dict.contains_word_str(st))
.collect_vec();
- // The indexes will be shifted after each removal, so this won't work
replacements.into_iter().for_each(|(s, e, t, _)| {
(s + 1..=e).for_each(|n| removal_indexes.push_front(n));
tokens[s] = t;