This commit is contained in:
Alec Thomas
2018-06-07 20:56:51 +10:00
parent 9cc1872297
commit 57152253cc
+1 -1
View File
@@ -384,7 +384,7 @@ func checkMissingChildren(node *Node) error {
// If we're missing any positionals and they're required, return an error.
func checkMissingPositionals(positional int, values []*Value) error {
// All the positionals are in.
if positional == len(values) {
if positional >= len(values) {
return nil
}