1
0
mirror of https://github.com/golang/go synced 2024-11-23 17:50:06 -07:00

math/big: fix incorrect comment variable reference

Fix comment as w&1 is the parity of 'x', not of 'n'.

Change-Id: Ia0e448f7e5896412ff9b164459ce15561ab624cc
GitHub-Last-Rev: 54ba08ab10
GitHub-Pull-Request: golang/go#29419
Reviewed-on: https://go-review.googlesource.com/c/155743
Reviewed-by: Robert Griesemer <gri@golang.org>
This commit is contained in:
Will Beason 2018-12-26 01:17:47 +00:00 committed by Robert Griesemer
parent 55e3aced9e
commit bfaf11c158

View File

@ -51,7 +51,7 @@ func (x *Int) ProbablyPrime(n int) bool {
}
if w&1 == 0 {
return false // n is even
return false // x is even
}
const primesA = 3 * 5 * 7 * 11 * 13 * 17 * 19 * 23 * 37