mirror of
https://github.com/crate-ci/typos.git
synced 2026-10-17 09:35:11 +02:00
fix(vars)!: Rename VARS_TRIE to VARS
This commit is contained in:
@@ -106,7 +106,7 @@ impl BuiltIn {
|
||||
|
||||
fn correct_with_vars(&self, word: UniCase<&str>) -> Option<Status<'static>> {
|
||||
if self.is_vars_enabled() {
|
||||
typos_vars::VARS_TRIE
|
||||
typos_vars::VARS
|
||||
.find(&word)
|
||||
.map(|variants| self.select_variant(variants))
|
||||
} else {
|
||||
|
||||
+3153
-3189
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 mut referenced_symbols: HashSet<&str> = HashSet::new();
|
||||
dictgen::DictGen::new()
|
||||
.name("VARS_TRIE")
|
||||
.name("VARS")
|
||||
.value_type("&[(u8, &VariantsMap)]")
|
||||
.trie()
|
||||
.write(
|
||||
|
||||
Reference in New Issue
Block a user