mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-05-23 08:30:07 -03:00
address review feedback - tixing a fypo
Signed-off-by: Alexander Bezzubov <bzz@apache.org>
This commit is contained in:
parent
85de120c17
commit
85d5906b2b
@ -51,7 +51,7 @@ func loadHeuristics(yaml *Heuristics) (map[string][]*LanguagePattern, error) {
|
||||
// unroll to a single map
|
||||
for _, ext := range disambiguation.Extensions {
|
||||
if _, ok := patterns[ext]; ok {
|
||||
return nil, fmt.Errorf("cannt add extension '%s', it already exists for %+v", ext, patterns[ext])
|
||||
return nil, fmt.Errorf("cannot add extension '%s', it already exists for %+v", ext, patterns[ext])
|
||||
}
|
||||
patterns[ext] = rules
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user