From 92a32fa6bdd8d862651c498ffa804022e1883e2f Mon Sep 17 00:00:00 2001 From: QiaoHao Date: Sat, 29 Oct 2022 09:09:16 +0800 Subject: [PATCH] typo: the parameter name of the return value --- concurrent_map_bench_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/concurrent_map_bench_test.go b/concurrent_map_bench_test.go index 80f8978..c692b95 100644 --- a/concurrent_map_bench_test.go +++ b/concurrent_map_bench_test.go @@ -259,7 +259,7 @@ func BenchmarkMultiGetSetBlock_256_Shard(b *testing.B) { runWithShards(benchmarkMultiGetSetBlock, b, 256) } -func GetSet[V any](m ConcurrentMap[V], finished chan struct{}) (set func(key string, value V), get func(key string, value V)) { +func GetSet[V any](m ConcurrentMap[V], finished chan struct{}) (get func(key string, value V), set func(key string, value V)) { return func(key string, value V) { for i := 0; i < 10; i++ { m.Get(key)