]> Cypherpunks repositories - gostls13.git/commitdiff
math/big: properly linkify a reference
authorAdam <bitlux@users.noreply.github.com>
Thu, 31 Oct 2024 07:12:15 +0000 (07:12 +0000)
committerGopher Robot <gobot@golang.org>
Thu, 31 Oct 2024 19:23:59 +0000 (19:23 +0000)
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>

src/math/big/int.go

index 944b70c0621afe2bc4ffd77721ddc1f588709045..df44e9dccf47bfe8763a6db729da9c49ff169c23 100644 (file)
@@ -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