mirror of
https://github.com/crate-ci/typos.git
synced 2025-02-13 08:40:29 -05:00
fix(vars)!: Rename VARS_TRIE to VARS
This commit is contained in:
parent
d17a11650c
commit
eb208bd86f
3 changed files with 3155 additions and 3191 deletions
|
@ -106,7 +106,7 @@ impl BuiltIn {
|
||||||
|
|
||||||
fn correct_with_vars(&self, word: UniCase<&str>) -> Option<Status<'static>> {
|
fn correct_with_vars(&self, word: UniCase<&str>) -> Option<Status<'static>> {
|
||||||
if self.is_vars_enabled() {
|
if self.is_vars_enabled() {
|
||||||
typos_vars::VARS_TRIE
|
typos_vars::VARS
|
||||||
.find(&word)
|
.find(&word)
|
||||||
.map(|variants| self.select_variant(variants))
|
.map(|variants| self.select_variant(variants))
|
||||||
} else {
|
} else {
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -85,7 +85,7 @@ fn generate_variations<W: Write>(file: &mut W) {
|
||||||
let entry_sets = entry_sets(entries.iter());
|
let entry_sets = entry_sets(entries.iter());
|
||||||
let mut referenced_symbols: HashSet<&str> = HashSet::new();
|
let mut referenced_symbols: HashSet<&str> = HashSet::new();
|
||||||
dictgen::DictGen::new()
|
dictgen::DictGen::new()
|
||||||
.name("VARS_TRIE")
|
.name("VARS")
|
||||||
.value_type("&[(u8, &VariantsMap)]")
|
.value_type("&[(u8, &VariantsMap)]")
|
||||||
.trie()
|
.trie()
|
||||||
.write(
|
.write(
|
||||||
|
|
Loading…
Add table
Reference in a new issue