aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Fitzpatrick <bradfitz@golang.org>2014-10-31 00:48:57 -0300
committerBrad Fitzpatrick <bradfitz@golang.org>2014-10-31 00:48:57 -0300
commitbaa5d26f629a38335df010a1b5098ebdec8af3b8 (patch)
tree86604da5df71316e239cac29ed49b0f66a5598f5
parent692ad844b632074d9e71b6e59fab227c82da77b5 (diff)
downloadgo-baa5d26f629a38335df010a1b5098ebdec8af3b8.tar.gz
go-baa5d26f629a38335df010a1b5098ebdec8af3b8.zip
sync/atomic: fix comment referencing Value.Store's argument name
Fixes #9029 LGTM=adg, r R=r, adg CC=golang-codereviews https://golang.org/cl/161630044
-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 ab46d9a240..ab3aa11285 100644
--- a/src/sync/atomic/value.go
+++ b/src/sync/atomic/value.go
@@ -38,7 +38,7 @@ func (v *Value) Load() (x interface{}) {
return
}
-// Store sets the value of the Value to v.
+// Store sets the value of the Value to x.
// 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(x interface{}) {