Skip to content

Commit

Permalink
chore: Document a case
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Apr 16, 2019
1 parent 930a505 commit 779db94
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ pub fn process_file(path: &std::path::Path, dictionary: &Dictionary, report: rep
let line_num = line_idx + 1;
for token in identifier::tokenize(line) {
if let Some(word) = std::str::from_utf8(token.token).ok() {
// Correct tokens as-is
if let Some(correction) = dictionary.correct_str(word) {
let col_num = token.offset;
let msg = report::Message {
Expand Down

0 comments on commit 779db94

Please sign in to comment.