From: Filippo Valsorda Date: Wed, 5 Feb 2020 20:24:30 +0000 (-0500) Subject: [release-branch.go1.14] math/big: reintroduce pre-Go 1.14 mention in GCD docs X-Git-Tag: go1.14~11 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=29ccdfc8535020ecb4b048f9158efe5f454ed918;p=gostls13.git [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 (cherry picked from commit 88ae4ccefb60ce7e83b25c3bf0f55a4d8704e123) Reviewed-on: https://go-review.googlesource.com/c/go/+/217997 Reviewed-by: Katie Hockman Run-TryBot: Katie Hockman TryBot-Result: Gobot Gobot --- 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. //