]> Cypherpunks repositories - gostls13.git/commitdiff
doc: document new cmp.Or function
authorkhr@golang.org <khr@golang.org>
Tue, 5 Dec 2023 22:54:10 +0000 (22:54 +0000)
committerGopher Robot <gobot@golang.org>
Wed, 6 Dec 2023 13:10:06 +0000 (13:10 +0000)
Change-Id: I41ea06018daae2c929edc24a714007cede9296ed
Reviewed-on: https://go-review.googlesource.com/c/go/+/547756
TryBot-Bypass: Keith Randall <khr@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
Auto-Submit: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
doc/go1.22.html

index 12203742bd95ce4a630fd430aa5fd30d447d0f69..05c7cc090c6758c7497bbc66204de0b99b5600ae 100644 (file)
@@ -243,12 +243,8 @@ Do not send CLs removing the interior tags from such phrases.
 
 <dl id="cmp"><dt><a href="/pkg/cmp/">cmp</a></dt>
   <dd>
-    <p><!-- https://go.dev/issue/60204 -->
-      TODO: <a href="https://go.dev/issue/60204">https://go.dev/issue/60204</a>: add Or
-    </p>
-
-    <p><!-- CL 504883 -->
-      TODO: <a href="https://go.dev/cl/504883">https://go.dev/cl/504883</a>: cmp: add Or; modified api/next/60204.txt
+    <p><!-- https://go.dev/issue/60204 --><!-- CL 504883 -->
+      The new function <code>Or</code> returns the first in a sequence of values that is not the zero value.
     </p>
   </dd>
 </dl><!-- cmp -->