mirror of https://github.com/golang/go.git
doc/go1.21: mention new cmp package
For #59488 Change-Id: I73ee4d1d8b9d8e6f0aad9e3bb98729aaa0f06a47 Reviewed-on: https://go-review.googlesource.com/c/go/+/501697 TryBot-Bypass: Ian Lance Taylor <iant@google.com> Reviewed-by: Robert Griesemer <gri@google.com> Reviewed-by: Eli Bendersky <eliben@google.com> Reviewed-by: Ian Lance Taylor <iant@google.com> Auto-Submit: Ian Lance Taylor <iant@google.com>
This commit is contained in:
parent
fe9fc408f4
commit
cc99093dfa
|
|
@ -386,13 +386,15 @@ Do not send CLs removing the interior tags from such phrases.
|
|||
maps of any key or element type.
|
||||
</p>
|
||||
|
||||
<dl id="cmp"><dt><a href="/pkg/cmp/">cmp</a></dt>
|
||||
<dd>
|
||||
<p><!-- CL 496356 -->
|
||||
TODO: <a href="https://go.dev/cl/496356">https://go.dev/cl/496356</a>: cmp: new package; modified api/next/59488.txt
|
||||
</p>
|
||||
</dd>
|
||||
</dl><!-- cmp -->
|
||||
<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
|
||||
two new generic functions
|
||||
<a href="/pkg/cmp/#Less"><code>Less</code></a>
|
||||
and <a href="/pkg/cmp/#Compare"><code>Compare</code></a> that are
|
||||
useful with <a href="/ref/spec/#Comparison_operators">ordered
|
||||
types</a>.
|
||||
</p>
|
||||
|
||||
<h3 id="minor_library_changes">Minor changes to the library</h3>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue