aboutsummaryrefslogtreecommitdiff
path: root/src/math
diff options
context:
space:
mode:
authorAdam <bitlux@users.noreply.github.com>2024-10-31 07:12:15 +0000
committerGopher Robot <gobot@golang.org>2024-10-31 19:23:59 +0000
commitf7a14ae0cd2f4a1f39610b1580e15693456c9639 (patch)
tree5a4ec4379e8329b9c6dd95e1b4c861a39b4c5e8d /src/math
parentac396b4b910ac491a6ab52065e3d02422630d91f (diff)
downloadgo-f7a14ae0cd2f4a1f39610b1580e15693456c9639.tar.xz
math/big: properly linkify a reference
Change-Id: Ie7649060db25f1573eeaadd534a600bb24d30572 GitHub-Last-Rev: c617848a4ec9f5c21820982efc95e0ec4ca2510c GitHub-Pull-Request: golang/go#70134 Reviewed-on: https://go-review.googlesource.com/c/go/+/623757 Reviewed-by: Carlos Amedee <carlos@golang.org> Reviewed-by: Robert Griesemer <gri@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Auto-Submit: Robert Griesemer <gri@google.com>
Diffstat (limited to 'src/math')
-rw-r--r--src/math/big/int.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/math/big/int.go b/src/math/big/int.go
index 944b70c062..df44e9dccf 100644
--- a/src/math/big/int.go
+++ b/src/math/big/int.go
@@ -288,7 +288,7 @@ func (z *Int) Rem(x, y *Int) *Int {
// r = x - y*q
//
// (See Daan Leijen, “Division and Modulus for Computer Scientists”.)
-// See [DivMod] for Euclidean division and modulus (unlike Go).
+// See [Int.DivMod] for Euclidean division and modulus (unlike Go).
func (z *Int) QuoRem(x, y, r *Int) (*Int, *Int) {
z.abs, r.abs = z.abs.div(r.abs, x.abs, y.abs)
z.neg, r.neg = len(z.abs) > 0 && x.neg != y.neg, len(r.abs) > 0 && x.neg // 0 has no sign