Commit f9acd391 authored by Josh Bleecher Snyder's avatar Josh Bleecher Snyder

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 <josharian@gmail.com>
Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
parent 320ddcf8
...@@ -79,7 +79,7 @@ func TestTokens(t *testing.T) { ...@@ -79,7 +79,7 @@ func TestTokens(t *testing.T) {
continue continue
} }
if got.prec != want.prec { if got.prec != want.prec {
t.Errorf("got prec = %s; want %s", got.prec, want.prec) t.Errorf("got prec = %d; want %d", got.prec, want.prec)
continue continue
} }
nlsemi = want.tok == _IncOp nlsemi = want.tok == _IncOp
......
...@@ -10,7 +10,7 @@ import ( ...@@ -10,7 +10,7 @@ import (
"net/http/httptrace" "net/http/httptrace"
) )
func ExampleTrace() { func Example() {
req, _ := http.NewRequest("GET", "http://example.com", nil) req, _ := http.NewRequest("GET", "http://example.com", nil)
trace := &httptrace.ClientTrace{ trace := &httptrace.ClientTrace{
GotConn: func(connInfo httptrace.GotConnInfo) { GotConn: func(connInfo httptrace.GotConnInfo) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment