Join GitHub today
cmd/vet: no or incorrect warning for zero-based indexing in printf format #9752
Using go1.4.1 linux/amd64 and golang.org/x/tools
Run the following source (playground link) and then run
fmt.Printf("%s\n", "arg1") fmt.Printf("%d\n", 1)
You'll see the following output:
There was no warning for the first format and a misleading warning for the second format.