]> Cypherpunks repositories - gostls13.git/commitdiff
net/http, cmd/compile: minor vet fixes
authorJosh Bleecher Snyder <josharian@gmail.com>
Thu, 25 Aug 2016 20:42:49 +0000 (13:42 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Thu, 25 Aug 2016 21:21:59 +0000 (21:21 +0000)
Updates #11041

Change-Id: Ia0151723e3bc0d163cc687a02bfc5e0285d95ffa
Reviewed-on: https://go-review.googlesource.com/27810
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/cmd/compile/internal/syntax/scanner_test.go
src/net/http/httptrace/example_test.go

index 4b582ccfdfb0d63c4d0506ee7ddcecc0618334a3..70b986ed4e2515c6281ce28403d60f4e9e2c240a 100644 (file)
@@ -79,7 +79,7 @@ func TestTokens(t *testing.T) {
                                continue
                        }
                        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
                        }
                        nlsemi = want.tok == _IncOp
index c8ed4464359533d186f2997f6c56642aed22366d..3a4b35469c9aa5cb7eafa23e34ad5f6ab8221a54 100644 (file)
@@ -10,7 +10,7 @@ import (
        "net/http/httptrace"
 )
 
-func ExampleTrace() {
+func Example() {
        req, _ := http.NewRequest("GET", "http://example.com", nil)
        trace := &httptrace.ClientTrace{
                GotConn: func(connInfo httptrace.GotConnInfo) {