Commit d844aae6 authored by Rob Pike's avatar Rob Pike

prints: fix a couple of formatting errors caught by govet

R=rsc, agl, agl1
CC=golang-dev
https://golang.org/cl/4337041
parent fb80f63c
......@@ -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:
......
......@@ -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)
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment