Skip to content

Commit f9acd39

Browse files
committed
net/http, cmd/compile: minor vet fixes
Updates #11041 Change-Id: Ia0151723e3bc0d163cc687a02bfc5e0285d95ffa Reviewed-on: https://go-review.googlesource.com/27810 Run-TryBot: Josh Bleecher Snyder <[email protected]> Reviewed-by: Brad Fitzpatrick <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
1 parent 320ddcf commit f9acd39

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/cmd/compile/internal/syntax/scanner_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ func TestTokens(t *testing.T) {
7979
continue
8080
}
8181
if got.prec != want.prec {
82-
t.Errorf("got prec = %s; want %s", got.prec, want.prec)
82+
t.Errorf("got prec = %d; want %d", got.prec, want.prec)
8383
continue
8484
}
8585
nlsemi = want.tok == _IncOp

src/net/http/httptrace/example_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"net/http/httptrace"
1111
)
1212

13-
func ExampleTrace() {
13+
func Example() {
1414
req, _ := http.NewRequest("GET", "http://example.com", nil)
1515
trace := &httptrace.ClientTrace{
1616
GotConn: func(connInfo httptrace.GotConnInfo) {

0 commit comments

Comments
 (0)