mirror of
https://github.com/crate-ci/typos.git
synced 2024-11-25 02:20:58 -05:00
style(misspell): Collapae case
This commit is contained in:
parent
cec3ad07f1
commit
2e95e5e1f6
1 changed files with 1 additions and 3 deletions
|
@ -21,9 +21,7 @@ fn parse_dict(raw: &str) -> Words {
|
||||||
let mut current = &mut bad;
|
let mut current = &mut bad;
|
||||||
for line in raw.lines() {
|
for line in raw.lines() {
|
||||||
let line = line.splitn(2, "//").next().unwrap().trim();
|
let line = line.splitn(2, "//").next().unwrap().trim();
|
||||||
if line.is_empty() {
|
if line.is_empty() || line.starts_with("package") {
|
||||||
continue;
|
|
||||||
} else if line.starts_with("package") {
|
|
||||||
continue;
|
continue;
|
||||||
} else if line.contains("DictMain") {
|
} else if line.contains("DictMain") {
|
||||||
current = &mut main;
|
current = &mut main;
|
||||||
|
|
Loading…
Reference in a new issue