mirror of
https://github.com/golang/go
synced 2024-11-18 10:14:45 -07:00
913f41fc5f
Argument indexes in a format string are one-based, however vet would not warn when using a zero-index unless the type of the argument referenced was not a string. That warning was misleading as it would say the type was not a string. Vet will now print a correct warning when using a zero index. Included are tests for both cases. Fixes #9752 Change-Id: I285e99990a86a653b4668b0c279d5f5f1c34f7aa Reviewed-on: https://go-review.googlesource.com/3692 Reviewed-by: Rob Pike <r@golang.org> |
||
---|---|---|
.. | ||
benchcmp | ||
callgraph | ||
cover | ||
digraph | ||
eg | ||
godex | ||
godoc | ||
goimports | ||
gomvpkg | ||
gorename | ||
gotype | ||
html2article | ||
oracle | ||
present | ||
ssadump | ||
stringer | ||
tipgodoc | ||
vet |