]> Cypherpunks repositories - gostls13.git/commit
cmd/vet: polish output of shadow test
authorMarvin Stenger <marvin.stenger94@gmail.com>
Tue, 1 Mar 2016 20:18:56 +0000 (21:18 +0100)
committerRob Pike <r@golang.org>
Wed, 2 Mar 2016 00:49:39 +0000 (00:49 +0000)
commita8d4463e50fb67448981a5c36a8fd6cb0da5c86f
tree361b51236556dede6c0b1abaa3e445a336b2069f
parent5fea2ccc77eb50a9704fa04b7c61755fe34e1d95
cmd/vet: polish output of shadow test

This commit modifies the style of a error message in case of -shadow.

Previously such a message would look like:
foo.go:42: declaration of err shadows declaration at shadow.go:13:

Changes of the commit include highlighting the variable name and
removing the ": "(space intended) at the end of the line:
foo.go:42: declaration of "err" shadows declaration at shadow.go:13

Fixes #14585.

Change-Id: Ia6a6bf396668dcba9a24f025a08d8826db31f434
Reviewed-on: https://go-review.googlesource.com/20093
Reviewed-by: Rob Pike <r@golang.org>
src/cmd/vet/main.go
src/cmd/vet/shadow.go
src/cmd/vet/testdata/shadow.go