Answer architecture round 2: guard Noun's range, name calc once as builtinfunc.Calc, and place readTableOptions in item 46
This commit is contained in:
+1
-1
@@ -173,7 +173,7 @@ func (p *valueProof) proveTemplate(t *template) proven.Value {
|
||||
leaves = append(leaves, a.leaves...)
|
||||
}
|
||||
return p.proveUnion(leaves)
|
||||
case name == "calc":
|
||||
case name == builtinfunc.Calc:
|
||||
return p.proveCalc(o)
|
||||
case builtinfunc.IsTransform(name):
|
||||
return proven.Unproven(fmt.Sprintf("{%s} rewrites text rather than printing a value; write the values it would print", body))
|
||||
|
||||
Reference in New Issue
Block a user