aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/syntax
diff options
context:
space:
mode:
authorJosh Bleecher Snyder <josharian@gmail.com>2016-11-11 07:37:32 -0800
committerJosh Bleecher Snyder <josharian@gmail.com>2016-11-11 16:01:59 +0000
commiteb8f2a832078d0748bcf1eb38357c8119fdbccb7 (patch)
tree2045365c040fb435b8b132a306247433159324f1 /src/cmd/compile/internal/syntax
parent50fed64dd90ca6a58cfe8fa7c1061aa8666cc76f (diff)
downloadgo-eb8f2a832078d0748bcf1eb38357c8119fdbccb7.tar.xz
all: fix vet nits
Fixes these complaints from vet: cmd/compile/internal/gc/noder.go:32: cmd/compile/internal/syntax.Error composite literal uses unkeyed fields cmd/compile/internal/gc/noder.go:1035: cmd/compile/internal/syntax.Error composite literal uses unkeyed fields cmd/compile/internal/gc/noder.go:1051: cmd/compile/internal/syntax.Error composite literal uses unkeyed fields cmd/compile/internal/syntax/parser_test.go:182: possible formatting directive in Error call net/http/client_test.go:1334: possible formatting directive in Fatal call Change-Id: I5f90ec30f3c106c7e66c92e2b6f8d3b4874fec66 Reviewed-on: https://go-review.googlesource.com/33133 Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/cmd/compile/internal/syntax')
-rw-r--r--src/cmd/compile/internal/syntax/parser_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/compile/internal/syntax/parser_test.go b/src/cmd/compile/internal/syntax/parser_test.go
index dc7f91d5ef..c4b43bfe78 100644
--- a/src/cmd/compile/internal/syntax/parser_test.go
+++ b/src/cmd/compile/internal/syntax/parser_test.go
@@ -179,6 +179,6 @@ func TestParseFile(t *testing.T) {
t.Error("missing io error")
}
if err != first {
- t.Error("got %v; want first error %v", err, first)
+ t.Errorf("got %v; want first error %v", err, first)
}
}