]> Cypherpunks repositories - gostls13.git/commitdiff
prints: fix a couple of formatting errors caught by govet
authorRob Pike <r@golang.org>
Tue, 29 Mar 2011 21:03:08 +0000 (14:03 -0700)
committerRob Pike <r@golang.org>
Tue, 29 Mar 2011 21:03:08 +0000 (14:03 -0700)
R=rsc, agl, agl1
CC=golang-dev
https://golang.org/cl/4337041

src/cmd/gofix/fix.go
src/pkg/crypto/ecdsa/ecdsa_test.go

index 93cbc94e21866904c29ab83ea3efde58abb1c297..57c87531ebb0e9c1cdde03e55d5dd2cd6cf65615 100644 (file)
@@ -39,7 +39,7 @@ func rewrite(x interface{}, visit func(interface{})) {
 
        // everything else just recurses
        default:
-               panic(fmt.Errorf("unexpected type %T in walk", x, visit))
+               panic(fmt.Errorf("unexpected type %T in walk", x))
 
        case nil:
 
index 24c1d735bddfd63dbf9489ac1e742c0e85eab61f..d6b40391421c474d5233fd48bf0b21ca033ad27f 100644 (file)
@@ -20,7 +20,7 @@ func testKeyGeneration(t *testing.T, c *elliptic.Curve, tag string) {
                return
        }
        if !c.IsOnCurve(priv.PublicKey.X, priv.PublicKey.Y) {
-               t.Errorf("%s: public key invalid", tag, err)
+               t.Errorf("%s: public key invalid: %s", tag, err)
        }
 }