diff options
author | cuiweixie <cuiweixie@gmail.com> | 2022-09-04 19:20:31 +0800 |
---|---|---|
committer | Benny Siegert <bsiegert@gmail.com> | 2022-09-07 06:17:15 +0000 |
commit | 6a2ff105f169ac3b607621d6b8cd5bd0a7c800e6 (patch) | |
tree | 1b0b08510b94502043c61d63d7e04cf86c7c95ef /src/unicode | |
parent | 77da976419ebef9beec480e86202db7a32ebd181 (diff) | |
download | go-git-6a2ff105f169ac3b607621d6b8cd5bd0a7c800e6.tar.gz |
unicode/utf8: use strings.Builder
Change-Id: I88b55f61eccb5764cac2a9397fd99a62f8735a9a
Reviewed-on: https://go-review.googlesource.com/c/go/+/428281
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Reviewed-by: Benny Siegert <bsiegert@gmail.com>
Diffstat (limited to 'src/unicode')
-rw-r--r-- | src/unicode/utf8/utf8_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unicode/utf8/utf8_test.go b/src/unicode/utf8/utf8_test.go index e7c31222cc..19a04dc92e 100644 --- a/src/unicode/utf8/utf8_test.go +++ b/src/unicode/utf8/utf8_test.go @@ -626,7 +626,7 @@ var longStringJapanese string // ~100KB, non-ASCII func init() { const japanese = "日本語日本語日本語日" - var b bytes.Buffer + var b strings.Builder for i := 0; b.Len() < 100_000; i++ { if i%100 == 0 { b.WriteString(japanese) |