You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It prints the first line without problems, and prints the second one with errors. As far I understand, when there are explicit arguments in the format string, fmt does not report errors about extra arguments (see: #22867).
Now, run go vet on this file.
What did you expect to see?
Error is reported only for the second line.
What did you see instead?
Errors are reported for both lines.
The text was updated successfully, but these errors were encountered:
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go1.9.3 darwin/amd64
What did you do?
Run the following program:
It prints the first line without problems, and prints the second one with errors. As far I understand, when there are explicit arguments in the format string,
fmt
does not report errors about extra arguments (see: #22867).Now, run
go vet
on this file.What did you expect to see?
Error is reported only for the second line.
What did you see instead?
Errors are reported for both lines.
The text was updated successfully, but these errors were encountered: