From: Ian Lance Taylor
Date: Thu, 8 Jun 2023 00:05:11 +0000 (-0700)
Subject: doc/go1.21: mention new cmp package
X-Git-Tag: go1.21rc1~57
X-Git-Url: http://www.git.cypherpunks.ru/?a=commitdiff_plain;h=cc99093dfa60ecd2350cadcab5fe0d5066f06d55;p=gostls13.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
Reviewed-by: Robert Griesemer
Reviewed-by: Eli Bendersky
Reviewed-by: Ian Lance Taylor
Auto-Submit: Ian Lance Taylor
---
diff --git a/doc/go1.21.html b/doc/go1.21.html
index 10aafac668..1f9d8ffea1 100644
--- a/doc/go1.21.html
+++ b/doc/go1.21.html
@@ -386,13 +386,15 @@ Do not send CLs removing the interior tags from such phrases.
maps of any key or element type.
-- cmp
- -
-
- TODO: https://go.dev/cl/496356: cmp: new package; modified api/next/59488.txt
-
-
-
+
+ The new cmp package defines the type
+ constraint Ordered
and
+ two new generic functions
+ Less
+ and Compare
that are
+ useful with ordered
+ types.
+
Minor changes to the library