aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorVishal Dalwadi <dalwadivishal26@gmail.com>2021-05-07 10:25:27 +0530
committerDmitri Shuralyov <dmitshur@golang.org>2021-05-20 16:08:35 +0000
commitbb7495a46d6024da9d77722f04b438e573bcb26f (patch)
tree9abbbdcea7a4cac013a56dd62865a6814f0f1e12 /doc
parentf07e4dae3c5cb608b4f0b9db57d1562d2125243b (diff)
downloadgo-bb7495a46d6024da9d77722f04b438e573bcb26f.tar.gz
go-bb7495a46d6024da9d77722f04b438e573bcb26f.zip
doc/go1.17: document new math constants
Documents the newly introduced: * MaxInt * MinInt * MaxUint Updates #28538. For #44513. Fixes #46012. Change-Id: Iab6bbcf8f76ebe105b973d5fd39b86b8cd078348 Reviewed-on: https://go-review.googlesource.com/c/go/+/317911 Trust: Heschi Kreinick <heschi@google.com> Reviewed-by: Emmanuel Odeke <emmanuel@orijtech.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/go1.17.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/go1.17.html b/doc/go1.17.html
index 4b2f4bce79..4c7348a36d 100644
--- a/doc/go1.17.html
+++ b/doc/go1.17.html
@@ -334,7 +334,9 @@ Do not send CLs removing the interior tags from such phrases.
<dl id="math"><dt><a href="/pkg/math/">math</a></dt>
<dd>
<p><!-- CL 247058 -->
- TODO: <a href="https://golang.org/cl/247058">https://golang.org/cl/247058</a>: add MaxUint, MinInt, MaxInt
+ The math package now defines three more constants: <code>MaxUint</code>, <code>MaxInt</code> and <code>MinInt</code>.
+ For 32-bit systems their values are <code>2^32 - 1</code>, <code>2^31 - 1</code> and <code>-2^31</code>, respectively.
+ For 64-bit systems their values are <code>2^64 - 1</code>, <code>2^63 - 1</code> and <code>-2^63</code>, respectively.
</p>
</dd>
</dl><!-- math -->