mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-21 16:47:28 +01:00
Prepare for more generic funcs, not just slices
This commit is contained in:
1 parent
33746151aa
commit
a9d5adc3fc
3 files changed
+15
-14
No files matched your search
@@ -110,8 +110,8 @@ func parseBuiltInFuncs(tm *t.Map, ss []string, generic bool) (map[t.QQID]*a.Func
|
||||
}
|
||||
if generic {
|
||||
for i := range tokens {
|
||||
if tokens[i].ID == builtin.GenericReplaceFrom {
|
||||
tokens[i].ID = builtin.GenericReplaceTo
|
||||
if tokens[i].ID == builtin.PlaceholderOldName {
|
||||
tokens[i].ID = builtin.PlaceholderNewName
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user