aboutsummaryrefslogtreecommitdiff
path: root/src/math/big/float.go
diff options
context:
space:
mode:
authorKir Kolyshkin <kolyshkin@gmail.com>2024-07-10 19:22:24 -0700
committerGopher Robot <gobot@golang.org>2024-07-16 18:17:32 +0000
commit66e940b6f80bac7b03a8f6ee45385bee752034c0 (patch)
tree6c5f9d41182ed9e75013a17daaa03c3aba93a793 /src/math/big/float.go
parent0dae393a2643de239e5872260ec6e379f221f585 (diff)
downloadgo-66e940b6f80bac7b03a8f6ee45385bee752034c0.tar.xz
math/big: more cross-references in docstrings
Change-Id: I3541859bbf3ac4f9317b82a66d21be3d5c4c5a84 Reviewed-on: https://go-review.googlesource.com/c/go/+/597658 Reviewed-by: Ian Lance Taylor <iant@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Carlos Amedee <carlos@golang.org> Auto-Submit: Ian Lance Taylor <iant@google.com>
Diffstat (limited to 'src/math/big/float.go')
-rw-r--r--src/math/big/float.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/math/big/float.go b/src/math/big/float.go
index 51d5574781..57ad236130 100644
--- a/src/math/big/float.go
+++ b/src/math/big/float.go
@@ -393,7 +393,7 @@ func (x *Float) validate0() string {
// have before calling round. z's mantissa must be normalized (with the msb set)
// or empty.
//
-// CAUTION: The rounding modes ToNegativeInf, ToPositiveInf are affected by the
+// CAUTION: The rounding modes [ToNegativeInf], [ToPositiveInf] are affected by the
// sign of z. For correct rounding, the sign of z must be set correctly before
// calling round.
func (z *Float) round(sbit uint) {
@@ -733,7 +733,7 @@ func msb64(x nat) uint64 {
}
// Uint64 returns the unsigned integer resulting from truncating x
-// towards zero. If 0 <= x <= math.MaxUint64, the result is [Exact]
+// towards zero. If 0 <= x <= [math.MaxUint64], the result is [Exact]
// if x is an integer and [Below] otherwise.
// The result is (0, [Above]) for x < 0, and ([math.MaxUint64], [Below])
// for x > [math.MaxUint64].