From c8b851d372f3966e3c5eec7c331ad05aacb1ebda Mon Sep 17 00:00:00 2001 From: ch3nnn Date: Wed, 16 Aug 2023 20:10:23 +0800 Subject: [PATCH] fmt: fix receiver names are different --- src/fmt/print.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fmt/print.go b/src/fmt/print.go index 9c3bd3efec9..efbe3f193e4 100644 --- a/src/fmt/print.go +++ b/src/fmt/print.go @@ -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.