diff options
author | sivchari <shibuuuu5@gmail.com> | 2023-09-28 07:08:51 +0900 |
---|---|---|
committer | Gopher Robot <gobot@golang.org> | 2024-01-08 17:02:01 +0000 |
commit | 10a66d681672a8600705a7540e3b0477d4c43c4a (patch) | |
tree | 48803b50a0ce22bd5fc8af12bddf74aa418206fd | |
parent | 881869dde0ddddf37151137421cd53d0c537671e (diff) | |
download | go-10a66d681672a8600705a7540e3b0477d4c43c4a.tar.gz go-10a66d681672a8600705a7540e3b0477d4c43c4a.zip |
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>
-rw-r--r-- | src/sync/map.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sync/map.go b/src/sync/map.go index 00b2446153..7a9eebdce3 100644 --- a/src/sync/map.go +++ b/src/sync/map.go @@ -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. // |