mirror of
https://github.com/crate-ci/typos.git
synced 2024-11-21 16:41:01 -05:00
chore: Document a case
This commit is contained in:
parent
930a505bce
commit
779db94ecb
1 changed files with 1 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue