1
0
mirror of https://github.com/golang/go synced 2024-11-17 05:14:56 -07:00

doc: document new cmp.Or function

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>
This commit is contained in:
khr@golang.org 2023-12-05 22:54:10 +00:00 committed by Gopher Robot
parent 01dfae914b
commit e418258993

View 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 -->