diff options
| author | Joonas Kuorilehto <joneskoo@derbian.fi> | 2017-05-24 20:37:53 +0300 |
|---|---|---|
| committer | Brad Fitzpatrick <bradfitz@golang.org> | 2017-06-07 21:35:20 +0000 |
| commit | 766e1ae3623f7a30b308200ebdf42901ced6676c (patch) | |
| tree | cc2f378ec2f62ab2300c712c168c4fb0dc3a5ed9 /src/sync/atomic | |
| parent | d8899acaf896529a5ab119af3e52ab5ad9488e51 (diff) | |
| download | go-766e1ae3623f7a30b308200ebdf42901ced6676c.tar.xz | |
sync: remove note about creating with structures
Remove note that sync.Cond, sync.Mutex, sync.RWMutex and atomic.Value
can be created as part of other data structures. Structs can be embedded
by default, and default should not be repeated.
Fixes #20471.
Change-Id: If3f5703d3f60abd96482b58ca43450d02a9e645a
Reviewed-on: https://go-review.googlesource.com/44071
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/sync/atomic')
| -rw-r--r-- | src/sync/atomic/value.go | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/sync/atomic/value.go b/src/sync/atomic/value.go index 30abf72634..1fc1f681f2 100644 --- a/src/sync/atomic/value.go +++ b/src/sync/atomic/value.go @@ -9,7 +9,6 @@ import ( ) // A Value provides an atomic load and store of a consistently typed value. -// Values can be created as part of other data structures. // The zero value for a Value returns nil from Load. // Once Store has been called, a Value must not be copied. // |
