mirror of
https://github.com/golang/go
synced 2024-11-18 12:44:49 -07:00
cmd/vet: use strings.Builder
Change-Id: I583e167dac033037e82e55a9ae6c6f0c47a34c7f Reviewed-on: https://go-review.googlesource.com/c/go/+/428293 Auto-Submit: Ian Lance Taylor <iant@google.com> Reviewed-by: Tim King <taking@google.com> Run-TryBot: Tim King <taking@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Ian Lance Taylor <iant@google.com> Reviewed-by: Michael Knyszek <mknyszek@google.com> Reviewed-by: Ian Lance Taylor <iant@google.com>
This commit is contained in:
parent
196003f9fd
commit
df9d53d93b
@ -269,7 +269,7 @@ func errorCheck(outStr string, wantAuto bool, fullshort ...string) (err error) {
|
||||
if len(errs) == 1 {
|
||||
return errs[0]
|
||||
}
|
||||
var buf bytes.Buffer
|
||||
var buf strings.Builder
|
||||
fmt.Fprintf(&buf, "\n")
|
||||
for _, err := range errs {
|
||||
fmt.Fprintf(&buf, "%s\n", err.Error())
|
||||
|
Loading…
Reference in New Issue
Block a user