Skip to content

Commit

Permalink
doc: add release notes for new min/max built-ins
Browse files Browse the repository at this point in the history
For golang#59488.

Change-Id: Iefabb06014767c5f633082a112a81e9ff5f09a30
Reviewed-on: https://go-review.googlesource.com/c/go/+/498397
Reviewed-by: Ian Lance Taylor <[email protected]>
Auto-Submit: Robert Griesemer <[email protected]>
Reviewed-by: Robert Griesemer <[email protected]>
TryBot-Bypass: Robert Griesemer <[email protected]>
  • Loading branch information
griesemer authored and gopherbot committed May 25, 2023
1 parent cfe8b43 commit f0e356a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions doc/go1.21.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,15 @@ <h2 id="introduction">DRAFT RELEASE NOTES — Introduction to Go 1.21</h2>

<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>
Expand Down

0 comments on commit f0e356a

Please sign in to comment.