aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcsuzhang <csuzhang@tencent.com>2023-01-09 01:57:53 +0000
committerKeith Randall <khr@golang.org>2023-01-09 18:21:12 +0000
commit8232a09e3ed7d315a90ac059ee542ecaf0f6b4c2 (patch)
treefca5592a802210e22d33b8a7e341a44d31dcd4f7
parent841c3eb16646651d775dbf0ddfda1138aca5598a (diff)
downloadgo-8232a09e3ed7d315a90ac059ee542ecaf0f6b4c2.tar.gz
go-8232a09e3ed7d315a90ac059ee542ecaf0f6b4c2.zip
sync/atomic: fix the note of atomic.Store
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>
-rw-r--r--src/sync/atomic/value.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sync/atomic/value.go b/src/sync/atomic/value.go
index 2bef76c928..8c491b4616 100644
--- a/src/sync/atomic/value.go
+++ b/src/sync/atomic/value.go
@@ -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) {