diff options
| author | Alan Donovan <adonovan@google.com> | 2024-09-04 13:14:17 -0400 |
|---|---|---|
| committer | Alan Donovan <adonovan@google.com> | 2024-09-04 18:16:59 +0000 |
| commit | cd9a300afc0be43f7ad1891a18ed9b690f7f97ab (patch) | |
| tree | c75ebe4996e022d37078729224083101193d2e69 /src/cmd/api | |
| parent | 21ac23a96f204dfb558a8d3071380c1d105a93ba (diff) | |
| download | go-cd9a300afc0be43f7ad1891a18ed9b690f7f97ab.tar.xz | |
all: fix printf(var) mistakes detected by latest printf checker
These will cause build failures once we vendor x/tools.
In once case I renamed a function err to errf to indicate
that it is printf-like.
Updates golang/go#68796
Change-Id: I04d57b34ee5362f530554b7e8b817f70a9088d12
Reviewed-on: https://go-review.googlesource.com/c/go/+/610739
Commit-Queue: Alan Donovan <adonovan@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Tim King <taking@google.com>
Auto-Submit: Alan Donovan <adonovan@google.com>
Diffstat (limited to 'src/cmd/api')
| -rw-r--r-- | src/cmd/api/main_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/api/main_test.go b/src/cmd/api/main_test.go index b071ef5f99..10dbabb9b8 100644 --- a/src/cmd/api/main_test.go +++ b/src/cmd/api/main_test.go @@ -1019,7 +1019,7 @@ func (w *Walker) emitType(obj *types.TypeName) { func (w *Walker) emitStructType(name string, typ *types.Struct) { typeStruct := fmt.Sprintf("type %s struct", name) - w.emitf(typeStruct) + w.emitf("%s", typeStruct) defer w.pushScope(typeStruct)() for i := 0; i < typ.NumFields(); i++ { |
