mirror of
https://github.com/golang/go
synced 2024-11-23 05:20:11 -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:
parent
692ad844b6
commit
baa5d26f62
@ -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{}) {
|
||||
|
Loading…
Reference in New Issue
Block a user