]> Cypherpunks repositories - gostls13.git/commit
cmd/vet: remove "only" from error message
authorKevin Burke <kev@inburke.com>
Thu, 26 Apr 2018 06:04:36 +0000 (23:04 -0700)
committerKevin Burke <kev@inburke.com>
Fri, 27 Apr 2018 03:07:26 +0000 (03:07 +0000)
commit6b55407d2f342b9c291740f777b718a229690164
tree1dd2207e9a62438759d58ac8e3053578b228d2ee
parenta6b183fabd671fcca4b52e61bfa8843be24f2d03
cmd/vet: remove "only" from error message

If the vetted function supplies zero arguments, previously you would
get an error message like this:

    Printf format %v reads arg #1, but call has only 0 args

"has only 0 args" is an odd construction, and "has 0 args" sounds
better. Getting rid of "only" in all cases simplifies the code and
reads just as well.

Change-Id: I4706dfe4a75f13bf4db9c0650e459ca676710752
Reviewed-on: https://go-review.googlesource.com/109457
Run-TryBot: Kevin Burke <kev@inburke.com>
Run-TryBot: David Symonds <dsymonds@golang.org>
Reviewed-by: David Symonds <dsymonds@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/vet/print.go
src/cmd/vet/testdata/print.go