1
0
mirror of https://github.com/golang/go synced 2024-11-24 22:47:58 -07:00

prints: fix a couple of formatting errors caught by govet

R=rsc, agl, agl1
CC=golang-dev
https://golang.org/cl/4337041
This commit is contained in:
Rob Pike 2011-03-29 14:03:08 -07:00
parent fb80f63cf7
commit d844aae690
2 changed files with 2 additions and 2 deletions

View 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:

View 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)
}
}