From: Rob Pike Date: Tue, 29 Mar 2011 21:03:08 +0000 (-0700) Subject: prints: fix a couple of formatting errors caught by govet X-Git-Tag: weekly.2011-04-04~51 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=d844aae690edfc3c411e95ed9fdf583c45f63a3c;p=gostls13.git prints: fix a couple of formatting errors caught by govet R=rsc, agl, agl1 CC=golang-dev https://golang.org/cl/4337041 --- diff --git a/src/cmd/gofix/fix.go b/src/cmd/gofix/fix.go index 93cbc94e21..57c87531eb 100644 --- a/src/cmd/gofix/fix.go +++ b/src/cmd/gofix/fix.go @@ -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: diff --git a/src/pkg/crypto/ecdsa/ecdsa_test.go b/src/pkg/crypto/ecdsa/ecdsa_test.go index 24c1d735bd..d6b4039142 100644 --- a/src/pkg/crypto/ecdsa/ecdsa_test.go +++ b/src/pkg/crypto/ecdsa/ecdsa_test.go @@ -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) } }