aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2023-05-25 14:50:08 -0700
committerGopher Robot <gobot@golang.org>2023-05-25 22:02:08 +0000
commitf0e356a07d321ef674fcda71cd8014f055c10b07 (patch)
tree27bf2c80399e690f941c31cb72235aca689b216f
parentcfe8b43b1fd453d06fc32a04746dcc8be6e955fd (diff)
downloadgo-f0e356a07d321ef674fcda71cd8014f055c10b07.tar.xz
doc: add release notes for new min/max built-ins
For #59488. Change-Id: Iefabb06014767c5f633082a112a81e9ff5f09a30 Reviewed-on: https://go-review.googlesource.com/c/go/+/498397 Reviewed-by: Ian Lance Taylor <iant@google.com> Auto-Submit: Robert Griesemer <gri@google.com> Reviewed-by: Robert Griesemer <gri@google.com> TryBot-Bypass: Robert Griesemer <gri@google.com>
-rw-r--r--doc/go1.21.html9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/go1.21.html b/doc/go1.21.html
index c1cca12d22..040a12c682 100644
--- a/doc/go1.21.html
+++ b/doc/go1.21.html
@@ -25,6 +25,15 @@ Do not send CLs removing the interior tags from such phrases.
<h2 id="language">Changes to the language</h2>
+<!-- https://go.dev/issue/59488 -->
+<p>
+ Go 1.21 adds two new built-ins to the language:
+ the new functions <code>min</code> and <code>max</code> compute the
+ smallest (or largest, for <code>max</code>) value of a fixed number
+ of given arguments.
+ See the language spec for <a href="https://tip.golang.org/ref/spec#Min_and_max">details</a>.
+</p>
+
<p><!-- https://go.dev/issue/56986 -->
TODO: <a href="https://go.dev/issue/56986">https://go.dev/issue/56986</a>: extended backwards compatibility for Go
</p>