]> Cypherpunks repositories - gostls13.git/commit
cmd/vet: add missing %v to the verb regex
authorDaniel Martí <mvdan@mvdan.cc>
Wed, 22 Nov 2017 18:21:39 +0000 (18:21 +0000)
committerDaniel Martí <mvdan@mvdan.cc>
Wed, 22 Nov 2017 20:27:00 +0000 (20:27 +0000)
commit88599f184d686339954482d1be067d44b2efb644
tree589e1b7151861b55b24fe572da2f21a2c18f9e28
parent1490cf67edc42ffd2abd6230f0caebebaf832a96
cmd/vet: add missing %v to the verb regex

In golang.org/cl/74352, the print rules were overhauled to give better
error messages. This also meant adding a regex to find and extract the
used formatting verbs.

However, %v was missed. Add it to the expression, and add a test too.

Fixes #22847.

Change-Id: If117cc364db0cb91373742239b8a626c137642b0
Reviewed-on: https://go-review.googlesource.com/79455
Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/vet/print.go
src/cmd/vet/testdata/print.go