From: csuzhang Date: Mon, 9 Jan 2023 01:57:53 +0000 (+0000) Subject: sync/atomic: fix the note of atomic.Store X-Git-Tag: go1.20rc3~1^2~11 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=8232a09e3e;p=gostls13.git 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 Auto-Submit: Keith Randall TryBot-Result: Gopher Robot Reviewed-by: Ian Lance Taylor Reviewed-by: Keith Randall Run-TryBot: Keith Randall --- 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) {