]> Cypherpunks repositories - gostls13.git/commitdiff
doc: document additional atomic.Value methods
authorKeith Randall <khr@golang.org>
Wed, 12 May 2021 20:55:59 +0000 (13:55 -0700)
committerKeith Randall <khr@golang.org>
Fri, 21 May 2021 22:39:16 +0000 (22:39 +0000)
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>
doc/go1.17.html

index f00c649e048f32a15c1d1ee80452e93348385ffd..5ab99c29edb78866206046bffa3c1f771ea52614 100644 (file)
@@ -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 -->