]> Cypherpunks.ru repositories - gostls13.git/commitdiff
doc/go1.21: mention new cmp package
authorIan Lance Taylor <iant@golang.org>
Thu, 8 Jun 2023 00:05:11 +0000 (17:05 -0700)
committerGopher Robot <gobot@golang.org>
Thu, 8 Jun 2023 16:47:24 +0000 (16:47 +0000)
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>

doc/go1.21.html

index 10aafac6685a3e4fcff2781fd38b149700f94882..1f9d8ffea1716ae78ab294d26e1e303a41e0a53e 100644 (file)
@@ -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>