diff options
author | Filippo Valsorda <filippo@golang.org> | 2020-02-05 15:24:30 -0500 |
---|---|---|
committer | Filippo Valsorda <filippo@golang.org> | 2020-02-05 23:01:27 +0000 |
commit | 29ccdfc8535020ecb4b048f9158efe5f454ed918 (patch) | |
tree | b9d73af35950da14c995994153e195564b4ef2c1 | |
parent | 3f0cdedfdd4fe7531c49a29abb1824939d84d3bb (diff) | |
download | go-29ccdfc8535020ecb4b048f9158efe5f454ed918.tar.gz go-29ccdfc8535020ecb4b048f9158efe5f454ed918.zip |
[release-branch.go1.14] 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>
(cherry picked from commit 88ae4ccefb60ce7e83b25c3bf0f55a4d8704e123)
Reviewed-on: https://go-review.googlesource.com/c/go/+/217997
Reviewed-by: Katie Hockman <katie@golang.org>
Run-TryBot: Katie Hockman <katie@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
-rw-r--r-- | src/math/big/int.go | 4 |
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. // |