]> Cypherpunks.ru repositories - gostls13.git/commit
strings: rely on utf8.AppendRune
authorJoe Tsai <joetsai@digital-static.net>
Thu, 16 Jun 2022 00:50:04 +0000 (17:50 -0700)
committerGopher Robot <gobot@golang.org>
Tue, 23 Aug 2022 20:24:43 +0000 (20:24 +0000)
commit723a27994ddc926a2078bcc23ccbc33857577b4c
tree21fd5b086f5f8589e80c010ad48588e453922fa3
parente7f2e5697ac8b9b6ebfb3e0d059a8c318b4709eb
strings: rely on utf8.AppendRune

This is both simpler and more performant.

Change-Id: I66ef8e49c059a722932392ee3ecfb951d9b8e121
Reviewed-on: https://go-review.googlesource.com/c/go/+/412339
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
Run-TryBot: Joseph Tsai <joetsai@digital-static.net>
Auto-Submit: Joseph Tsai <joetsai@digital-static.net>
Reviewed-by: Ian Lance Taylor <iant@google.com>
src/strings/builder.go