cmd/internal/objabi: use strings.Builder

Since when go1.17 is now used for bootstraping.

Change-Id: I5ee65aff72500a04e243238cffeae92ea659627b
Reviewed-on: https://go-review.googlesource.com/c/go/+/427555
Auto-Submit: Keith Randall <khr@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: hopehook <hopehook@golangcn.org>
Reviewed-by: Heschi Kreinick <heschi@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Reviewed-by: Keith Randall <khr@google.com>
This commit is contained in:
hopehook 2022-09-01 21:42:25 +08:00 committed by Matthew Dempsky
parent ef8414101f
commit d31c4bc2de
1 changed files with 1 additions and 3 deletions

View File

@ -5,7 +5,6 @@
package objabi
import (
"bytes"
"flag"
"fmt"
"internal/buildcfg"
@ -179,8 +178,7 @@ func DecodeArg(arg string) string {
return arg
}
// We can't use strings.Builder as this must work at bootstrap.
var b bytes.Buffer
var b strings.Builder
var wasBS bool
for _, r := range arg {
if wasBS {