From fa5e11f72885ff4694f2c3743e6ce3733cff472d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=81=A3?= <⁣> Date: Sun, 17 May 2020 16:59:25 +0200 Subject: [PATCH] Fix mistake --- go/tests/boolean_test/boolean_correct/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")