diff --git a/go/tests/boolean_test/boolean_correct/main.go b/go/tests/boolean_test/boolean_correct/main.go index 86314ad9..e94d966b 100644 --- a/go/tests/boolean_test/boolean_correct/main.go +++ b/go/tests/boolean_test/boolean_correct/main.go @@ -6,7 +6,7 @@ import ( ) func main() { - if len(os.Args)-1%2 == 0 { + if len(os.Args[1:])%2 == 0 { fmt.Println("I have an even number of arguments") } else { fmt.Println("I have an odd number of arguments")