aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorKeith Randall <khr@golang.org>2021-05-12 13:55:59 -0700
committerKeith Randall <khr@golang.org>2021-05-21 22:39:16 +0000
commit217f5dd496e14f0e0617c9efe0509073dec95d61 (patch)
tree6d49412383705e79e6404711fff1ca68afe08965 /doc
parent3c656445f139d8b6def40aa7beffd5da9fceccdb (diff)
downloadgo-217f5dd496e14f0e0617c9efe0509073dec95d61.tar.gz
go-217f5dd496e14f0e0617c9efe0509073dec95d61.zip
doc: document additional atomic.Value methods
For #44513. Fixes #46022. Change-Id: Id1d87fbd4034461953760ce77201f87ed723ff88 Reviewed-on: https://go-review.googlesource.com/c/go/+/319549 Trust: Keith Randall <khr@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'doc')
-rw-r--r--doc/go1.17.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/go1.17.html b/doc/go1.17.html
index f00c649e04..5ab99c29ed 100644
--- a/doc/go1.17.html
+++ b/doc/go1.17.html
@@ -507,7 +507,9 @@ Do not send CLs removing the interior tags from such phrases.
<dl id="sync/atomic"><dt><a href="/pkg/sync/atomic/">sync/atomic</a></dt>
<dd>
<p><!-- CL 241678 -->
- TODO: <a href="https://golang.org/cl/241678">https://golang.org/cl/241678</a>: add (*Value).Swap and (*Value).CompareAndSwap
+ <code>atomic.Value</code> now has <a href="/pkg/sync/atomic/#Value.Swap"><code>Swap</code></a> and
+ <a href="/pkg/sync/atomic/#Value.CompareAndSwap"><code>CompareAndSwap</code></a> methods that provide
+ additional atomic operations.
</p>
</dd>
</dl><!-- sync/atomic -->