]> Cypherpunks repositories - gostls13.git/commit
cmd/vet: don't treat trailing % as possible formatting directive
authorJosh Bleecher Snyder <josharian@gmail.com>
Fri, 8 Jul 2016 00:40:37 +0000 (17:40 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Sun, 21 Aug 2016 22:45:38 +0000 (22:45 +0000)
commit6ad76718cfdd59977b0008c1e774150a7e39fbd8
treeb610eae51c49a257e7128590a0dcb7ac9a810eab
parent8e90b9026b64a47d68c80a079564b8c17611db0d
cmd/vet: don't treat trailing % as possible formatting directive

Eliminates the following false positive:

cmd/go/go_test.go:1916: possible formatting directive in Error call

The line in question:

tg.t.Error("some coverage results are 0.0%")

Updates #11041

Change-Id: I3b7611fa3e0245714a19bd5388f21e39944f5296
Reviewed-on: https://go-review.googlesource.com/27128
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rob Pike <r@golang.org>
src/cmd/vet/print.go
src/cmd/vet/testdata/print.go