mirror of
https://github.com/crate-ci/typos.git
synced 2024-12-22 15:42:23 -05:00
fix: Correctly calculate trie
This commit is contained in:
parent
f78135acd2
commit
2b667ffe55
1 changed files with 2 additions and 2 deletions
|
@ -28,9 +28,9 @@ impl<V> DictTrie<V> {
|
|||
match child.children {
|
||||
DictTrieChild::Nested(n) => {
|
||||
let byte = bytes[i];
|
||||
let index = if (b'a'..b'z').contains(&byte) {
|
||||
let index = if (b'a'..=b'z').contains(&byte) {
|
||||
byte - b'a'
|
||||
} else if (b'A'..b'Z').contains(&byte) {
|
||||
} else if (b'A'..=b'Z').contains(&byte) {
|
||||
byte - b'A'
|
||||
} else {
|
||||
return self.unicode.find(word);
|
||||
|
|
Loading…
Reference in a new issue