diff options
author | Rob Pike <r@golang.org> | 2011-03-29 14:03:08 -0700 |
---|---|---|
committer | Rob Pike <r@golang.org> | 2011-03-29 14:03:08 -0700 |
commit | ae01c2414a5694f78f4db7863dc5892578208c96 (patch) | |
tree | c79e9036b60fea6a18595597cb3907e26dd848c8 | |
parent | 660c669edb0dd9d595f626ba22cc42a403b2b257 (diff) | |
download | go-ae01c2414a5694f78f4db7863dc5892578208c96.tar.gz |
prints: fix a couple of formatting errors caught by govet
R=rsc, agl, agl1
CC=golang-dev
http://codereview.appspot.com/4337041
-rw-r--r-- | src/cmd/gofix/fix.go | 2 | ||||
-rw-r--r-- | 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 93cbc94e2..57c87531e 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 24c1d735b..d6b403914 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) } } |