]> Cypherpunks.ru repositories - gostls13.git/commitdiff
sync: use map[any]any instead of map[interface{}]interface{} in the godoc
authorsivchari <shibuuuu5@gmail.com>
Wed, 27 Sep 2023 22:08:51 +0000 (07:08 +0900)
committerGopher Robot <gobot@golang.org>
Mon, 8 Jan 2024 17:02:01 +0000 (17:02 +0000)
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>

src/sync/map.go

index 00b2446153c33e024a8f8696382fff4116e91f50..7a9eebdce39d541cd6caa14464dd6de8517b785a 100644 (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.
 //