1
0
mirror of https://github.com/golang/go synced 2024-11-23 08:30:05 -07:00

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
This commit is contained in:
Brad Fitzpatrick 2014-10-31 00:48:57 -03:00
parent 692ad844b6
commit baa5d26f62

View 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{}) {