Fix typo.

This commit is contained in:
Qi Xiao 2016-03-19 02:44:04 +01:00
parent 3c8a090735
commit 69411efbb7

View File

@ -169,7 +169,7 @@ func wrapFn(inner interface{}) func(*EvalCtx, []Value) {
}
return func(ec *EvalCtx, args []Value) {
if variadic {
if isVariadic {
if len(args) < fixedArgs {
throw(fmt.Errorf("arity mismatch: want at least %d arguments, got %d", fixedArgs, len(args)))
}