]> Cypherpunks repositories - gostls13.git/commit
encoding/gob: rename encBuffer.WriteByte to writeByte
authorRuss Cox <rsc@golang.org>
Wed, 8 May 2019 22:50:52 +0000 (18:50 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 9 May 2019 18:02:19 +0000 (18:02 +0000)
commitc514071988ac08249c8675dfa501ad242c4c0cec
tree995f87ff6a8644c95fc537de163a4a82a8d9c6f3
parent50a1d89ab2b193e7583da32be551e6074e1e7f9a
encoding/gob: rename encBuffer.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: I5b509eb7f0118d5f2d3c6e352ff2849cd5a3071e
Reviewed-on: https://go-review.googlesource.com/c/go/+/176110
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/vet/all/whitelist/all.txt
src/encoding/gob/encode.go