Browse Source

Fix mistake

content-update
4 years ago committed by xpetit
parent
commit
fa5e11f728
  1. 2
      go/tests/boolean_test/boolean_correct/main.go

2
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")

Loading…
Cancel
Save