1
0
mirror of https://github.com/golang/go synced 2024-09-23 11:20:17 -06:00

doc/go1.21: add heading for cmp package

For #59488.
For #58645.

Change-Id: Ia9b76d49825dd74f7e52d829ec6d47e6c2addd76
Reviewed-on: https://go-review.googlesource.com/c/go/+/501825
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Bypass: Dmitri Shuralyov <dmitshur@google.com>
This commit is contained in:
Dmitri Shuralyov 2023-06-10 21:06:25 -04:00 committed by Gopher Robot
parent 1fd3cc7cd0
commit bd8c133097

View File

@ -394,6 +394,8 @@ Do not send CLs removing the interior tags from such phrases.
maps of any key or element type.
</p>
<h3 id="cmp">New cmp package</h3>
<p><!-- https://go.dev/issue/59488, CL 469356 -->
The new <a href="/pkg/cmp/">cmp</a> package defines the type
constraint <a href="/pkg/cmp/#Ordered"><code>Ordered</code></a> and