aboutsummaryrefslogtreecommitdiff
path: root/src/math
diff options
context:
space:
mode:
authorFilippo Valsorda <filippo@golang.org>2020-02-05 15:24:30 -0500
committerFilippo Valsorda <filippo@golang.org>2020-02-05 20:54:27 +0000
commit88ae4ccefb60ce7e83b25c3bf0f55a4d8704e123 (patch)
treea7302337d303516d2ac7715d080214601d9fb1a9 /src/math
parent60f11c44c02ff815e02d1e59839c6c0bf3f6605e (diff)
downloadgo-88ae4ccefb60ce7e83b25c3bf0f55a4d8704e123.tar.gz
go-88ae4ccefb60ce7e83b25c3bf0f55a4d8704e123.zip
math/big: reintroduce pre-Go 1.14 mention in GCD docs
It was removed in CL 217302 but was intentionally added in CL 217104. Change-Id: I1a478d80ad1ec4f0a0184bfebf8f1a5e352cfe8c Reviewed-on: https://go-review.googlesource.com/c/go/+/217941 Reviewed-by: Robert Griesemer <gri@golang.org>
Diffstat (limited to 'src/math')
-rw-r--r--src/math/big/int.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/math/big/int.go b/src/math/big/int.go
index bec0a81b20..18f122e953 100644
--- a/src/math/big/int.go
+++ b/src/math/big/int.go
@@ -505,8 +505,8 @@ func (z *Int) Exp(x, y, m *Int) *Int {
// GCD sets z to the greatest common divisor of a and b and returns z.
// If x or y are not nil, GCD sets their value such that z = a*x + b*y.
//
-// a and b may be positive, zero or negative.
-// Regardless of the signs of a and b, z is always >= 0.
+// a and b may be positive, zero or negative. (Before Go 1.14 both had
+// to be > 0.) Regardless of the signs of a and b, z is always >= 0.
//
// If a == b == 0, GCD sets z = x = y = 0.
//