mirror of
https://github.com/golang/go
synced 2024-11-26 16:07:00 -07:00
sync: use map[any]any instead of map[interface{}]interface{} in the godoc
It's shorter and clearer. Change-Id: Ibfbe5a7f8d70fa884691ba9858a2c9b2122d9c50 Reviewed-on: https://go-review.googlesource.com/c/go/+/531475 Reviewed-by: Bryan Mills <bcmills@google.com> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Reviewed-by: Daniel Martí <mvdan@mvdan.cc> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Auto-Submit: Dmitri Shuralyov <dmitshur@google.com>
This commit is contained in:
parent
881869dde0
commit
10a66d6816
@ -8,7 +8,7 @@ import (
|
|||||||
"sync/atomic"
|
"sync/atomic"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Map is like a Go map[interface{}]interface{} but is safe for concurrent use
|
// Map is like a Go map[any]any but is safe for concurrent use
|
||||||
// by multiple goroutines without additional locking or coordination.
|
// by multiple goroutines without additional locking or coordination.
|
||||||
// Loads, stores, and deletes run in amortized constant time.
|
// Loads, stores, and deletes run in amortized constant time.
|
||||||
//
|
//
|
||||||
|
Loading…
Reference in New Issue
Block a user