Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/vet: incorrect error for multiple missing arguments #6248
When there's more than one argument missing, the message miscounts the number of required arguments. For instance, add this to testdata/print.go: Printf("%s %d %v %q", "str", 4) // ERROR "missing argument for Printf verb %v: need 4, have 2" vet flags an issue with the %v, but says "need 3, have 2" because it is progressively checking the Printf call instead of parsing the entire format first, and checking the correspondence second.
This issue was closed.