diff options
author | Russ Cox <rsc@golang.org> | 2019-05-08 18:47:32 -0400 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2019-05-09 17:49:12 +0000 |
commit | 50a1d89ab2b193e7583da32be551e6074e1e7f9a (patch) | |
tree | 89253269fd55e36cd39896ce5f8d258df92d0295 /src/cmd/vet | |
parent | a44c3edbe0aafb509a175dfe0918bd17863bc97c (diff) | |
download | go-50a1d89ab2b193e7583da32be551e6074e1e7f9a.tar.gz go-50a1d89ab2b193e7583da32be551e6074e1e7f9a.zip |
fmt: rename buffer.WriteByte to writeByte
Renaming the method makes clear, both to readers and to vet,
that this method is not the implementation of io.ByteWriter.
Working toward making the tree vet-safe instead of having
so many exceptions in cmd/vet/all/whitelist.
For #31916.
Change-Id: I79da062ca6469b62a6b9e284c6cf2413c7425249
Reviewed-on: https://go-review.googlesource.com/c/go/+/176109
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/cmd/vet')
-rw-r--r-- | src/cmd/vet/all/whitelist/all.txt | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cmd/vet/all/whitelist/all.txt b/src/cmd/vet/all/whitelist/all.txt index cecd52b412..435a0338d9 100644 --- a/src/cmd/vet/all/whitelist/all.txt +++ b/src/cmd/vet/all/whitelist/all.txt @@ -23,9 +23,8 @@ cmd/compile/internal/gc/testdata/short_test.go: unreachable code // These cases are basically ok. // Errors are handled reasonably and there's no clear need for interface satisfaction. // Except for the runtime/pprof case, the API is not exported. -fmt/print.go: method WriteByte(c byte) should have signature WriteByte(byte) error -// Also non-standard, but this method is on an unexported type, so it's +// Also on-standard, but this method is on an unexported type, so it's // irrelevant. encoding/gob/encode.go: method WriteByte(c byte) should have signature WriteByte(byte) error |