mirror of
https://github.com/golang/go
synced 2024-11-22 15:54:52 -07:00
fmt: fix receiver names are different
"buffer" call the receiver "b" in other method, don't call it "bp" in
another. Keep the same receiver names, as prescribed in Go Code Review
Comments (https://go.dev/s/style#receiver-names).
Change-Id: I9fafc799a9e4102419ed743b941bca74e908f5c0
GitHub-Last-Rev: c8b851d372
GitHub-Pull-Request: golang/go#62066
Reviewed-on: https://go-review.googlesource.com/c/go/+/520016
Auto-Submit: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Rob Pike <r@golang.org>
Run-TryBot: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
This commit is contained in:
parent
99b80993f6
commit
7af3107632
@ -112,8 +112,8 @@ func (b *buffer) writeByte(c byte) {
|
||||
*b = append(*b, c)
|
||||
}
|
||||
|
||||
func (bp *buffer) writeRune(r rune) {
|
||||
*bp = utf8.AppendRune(*bp, r)
|
||||
func (b *buffer) writeRune(r rune) {
|
||||
*b = utf8.AppendRune(*b, r)
|
||||
}
|
||||
|
||||
// pp is used to store a printer's state and is reused with sync.Pool to avoid allocations.
|
||||
|
Loading…
Reference in New Issue
Block a user