diff options
Diffstat (limited to 'src/sync/mutex.go')
| -rw-r--r-- | src/sync/mutex.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sync/mutex.go b/src/sync/mutex.go index 78b115cf5a..90892793f0 100644 --- a/src/sync/mutex.go +++ b/src/sync/mutex.go @@ -19,6 +19,8 @@ import ( // A Mutex is a mutual exclusion lock. // Mutexes can be created as part of other structures; // the zero value for a Mutex is an unlocked mutex. +// +// A Mutex must not be copied after first use. type Mutex struct { state int32 sema uint32 |
