aboutsummaryrefslogtreecommitdiff
path: root/src/sync/map.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/sync/map.go')
-rw-r--r--src/sync/map.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sync/map.go b/src/sync/map.go
index 33bc8141ab..4f1395110a 100644
--- a/src/sync/map.go
+++ b/src/sync/map.go
@@ -36,6 +36,8 @@ import (
//
// [the Go memory model]: https://go.dev/ref/mem
type Map struct {
+ _ noCopy
+
mu Mutex
// read contains the portion of the map's contents that are safe for