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:
parent
fb80f63cf7
commit
d844aae690
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user