From: sivchari Date: Wed, 27 Sep 2023 22:08:51 +0000 (+0900) Subject: sync: use map[any]any instead of map[interface{}]interface{} in the godoc X-Git-Tag: go1.22rc2~8^2~2 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=10a66d681672a8600705a7540e3b0477d4c43c4a;p=gostls13.git 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 Reviewed-by: Dmitri Shuralyov Reviewed-by: Daniel Martí LUCI-TryBot-Result: Go LUCI Auto-Submit: Dmitri Shuralyov --- 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. //