Open
Description
Description
When a typo is in a file name, the diagnostic ends with :N
. Because this pattern normally refers to a line number, it looks like the typo is on that line inside the file, not in the name itself.
$ touch hello_wolrd.txt
$ cargo bin typos --version
typos-cli 1.32.0
$ cargo bin typos .
error: `wolrd` should be `world`
--> ./hello_wolrd.txt:7
A clearer output could be:
error: `wolrd` should be `world`
--> ./hello_wolrd.txt (filename typo)
This makes it obvious the problem is a filename typo, not a content typo.