mirror of
https://github.com/crate-ci/typos.git
synced 2026-12-02 09:07:47 +01:00
chore: Document a case
This commit is contained in:
1 parent
930a505bce
commit
779db94ecb
1 file changed
+1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user