summaryrefslogtreecommitdiff
path: root/src/sync
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
commit143d4bbd218877e2be4705c633e0d3df03678812 (patch)
tree15478eea4bacc29c55da4b6117bf538454b1187b /src/sync
parent0c0ed81463951ae39a65591319501dc1d44037e0 (diff)
downloadgo-143d4bbd218877e2be4705c633e0d3df03678812.tar.gz
sync/atomic: fix comment referencing Value.Store's argument name
Fixes Issue 9029 LGTM=adg, r R=r, adg CC=golang-codereviews https://codereview.appspot.com/161630044
Diffstat (limited to 'src/sync')
-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 ab46d9a24..ab3aa1128 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{}) {