Prepare for more generic funcs, not just slices

This commit is contained in:
Nigel Tao committed 2018-05-04 09:31:52 +10:00
1 parent 33746151aa
commit a9d5adc3fc
3 files changed
+15 -14

No files matched your search

+2 -2
View File
@@ -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
}
}
}