aboutsummaryrefslogtreecommitdiff
path: root/src/math/big
diff options
context:
space:
mode:
authorJosh Bleecher Snyder <josharian@gmail.com>2017-02-12 22:56:50 -0800
committerJosh Bleecher Snyder <josharian@gmail.com>2017-02-14 02:09:30 +0000
commit785cb7e098b689e9d8c2d4be856f3ffa1825042e (patch)
tree2e1e360629e22b29e52ffba2a5bcfe071a0ded89 /src/math/big
parentcc2a52adef473aa94cbbcc148eef4dfd79259ae7 (diff)
downloadgo-785cb7e098b689e9d8c2d4be856f3ffa1825042e.tar.xz
all: fix some printf format strings
Appease vet. Change-Id: Ie88de08b91041990c0eaf2e15628cdb98d40c660 Reviewed-on: https://go-review.googlesource.com/36938 Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/math/big')
-rw-r--r--src/math/big/prime_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/math/big/prime_test.go b/src/math/big/prime_test.go
index a2d3d18f8f..77605195e5 100644
--- a/src/math/big/prime_test.go
+++ b/src/math/big/prime_test.go
@@ -200,7 +200,7 @@ func testPseudoprimes(t *testing.T, name string, cond func(nat) bool, want []int
n[0] = Word(i)
pseudo := cond(n)
if pseudo && (len(want) == 0 || i != want[0]) {
- t.Errorf("%s(%v, base=2) = %v, want false", name, i)
+ t.Errorf("%s(%v, base=2) = true, want false", name, i)
} else if !pseudo && len(want) >= 1 && i == want[0] {
t.Errorf("%s(%v, base=2) = false, want true", name, i)
}