]> Cypherpunks repositories - gostls13.git/commitdiff
sync/atomic: fix comment referencing Value.Store's argument name
authorBrad Fitzpatrick <bradfitz@golang.org>
Fri, 31 Oct 2014 03:48:57 +0000 (00:48 -0300)
committerBrad Fitzpatrick <bradfitz@golang.org>
Fri, 31 Oct 2014 03:48:57 +0000 (00:48 -0300)
Fixes #9029

LGTM=adg, r
R=r, adg
CC=golang-codereviews
https://golang.org/cl/161630044

src/sync/atomic/value.go

index ab46d9a240eb2628a5381222e23b2f9bdf4c207d..ab3aa11285478f214bad966f018dee3ab8c2bc1a 100644 (file)
@@ -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{}) {