mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-15 03:37:52 +08:00
Fix typo.
This commit is contained in:
parent
3c8a090735
commit
69411efbb7
|
@ -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)))
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user