From d844aae690edfc3c411e95ed9fdf583c45f63a3c Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Tue, 29 Mar 2011 14:03:08 -0700 Subject: [PATCH] prints: fix a couple of formatting errors caught by govet R=rsc, agl, agl1 CC=golang-dev https://golang.org/cl/4337041 --- src/cmd/gofix/fix.go | 2 +- src/pkg/crypto/ecdsa/ecdsa_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) } } -- 2.50.0