]> Cypherpunks repositories - gostls13.git/commit
fmt: rename buffer.WriteByte to writeByte
authorRuss Cox <rsc@golang.org>
Wed, 8 May 2019 22:47:32 +0000 (18:47 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 9 May 2019 17:49:12 +0000 (17:49 +0000)
commit50a1d89ab2b193e7583da32be551e6074e1e7f9a
tree89253269fd55e36cd39896ce5f8d258df92d0295
parenta44c3edbe0aafb509a175dfe0918bd17863bc97c
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>
src/cmd/vet/all/whitelist/all.txt
src/fmt/errors.go
src/fmt/format.go
src/fmt/print.go
src/fmt/scan.go