]> Cypherpunks.ru repositories - gostls13.git/commitdiff
sync/atomic: fix the note of atomic.Store
authorcsuzhang <csuzhang@tencent.com>
Mon, 9 Jan 2023 01:57:53 +0000 (01:57 +0000)
committerKeith Randall <khr@golang.org>
Mon, 9 Jan 2023 18:21:12 +0000 (18:21 +0000)
Change-Id: Id485d0f1e06febe97d1a770bc26c138d9613a7dd
GitHub-Last-Rev: e57dd3e1abb58031b3d8bec8beace1560faad397
GitHub-Pull-Request: golang/go#57679
Reviewed-on: https://go-review.googlesource.com/c/go/+/461076
Reviewed-by: Keith Randall <khr@google.com>
Auto-Submit: Keith Randall <khr@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
Run-TryBot: Keith Randall <khr@golang.org>

src/sync/atomic/value.go

index 2bef76c9285d12b27161b2d36204e0c6c4df7f81..8c491b4616267f6b8785a663bfc1f205ced2691a 100644 (file)
@@ -41,7 +41,7 @@ func (v *Value) Load() (val any) {
 
 var firstStoreInProgress byte
 
-// Store sets the value of the Value to x.
+// Store sets the value of the Value v to val.
 // All calls to Store for a given Value must use values of the same concrete type.
 // Store of an inconsistent type panics, as does Store(nil).
 func (v *Value) Store(val any) {