1
0
mirror of https://github.com/golang/go synced 2024-11-22 15:24:42 -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:
sivchari 2023-09-28 07:08:51 +09:00 committed by Gopher Robot
parent 881869dde0
commit 10a66d6816

View File

@ -8,7 +8,7 @@ import (
"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.
// Loads, stores, and deletes run in amortized constant time.
//