From 10a66d681672a8600705a7540e3b0477d4c43c4a Mon Sep 17 00:00:00 2001 From: sivchari Date: Thu, 28 Sep 2023 07:08:51 +0900 Subject: [PATCH] sync: use map[any]any instead of map[interface{}]interface{} in the godoc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/sync/map.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. //