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>
This commit is contained in:
Robert Griesemer 2023-05-25 14:50:08 -07:00 committed by Gopher Robot
parent cfe8b43b1f
commit f0e356a07d
1 changed files with 9 additions and 0 deletions

View File

@ -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>