From bb7495a46d6024da9d77722f04b438e573bcb26f Mon Sep 17 00:00:00 2001 From: Vishal Dalwadi Date: Fri, 7 May 2021 10:25:27 +0530 Subject: [PATCH] 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 Reviewed-by: Emmanuel Odeke --- doc/go1.17.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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.
math

- TODO: https://golang.org/cl/247058: add MaxUint, MinInt, MaxInt + The math package now defines three more constants: MaxUint, MaxInt and MinInt. + For 32-bit systems their values are 2^32 - 1, 2^31 - 1 and -2^31, respectively. + For 64-bit systems their values are 2^64 - 1, 2^63 - 1 and -2^63, respectively.