We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 957b5c4 commit 1236f4dCopy full SHA for 1236f4d
cmap/cmap.go
@@ -96,7 +96,7 @@ func (c *CMap[K, V]) Delete(key K) {
96
item.rw.Unlock()
97
}
98
99
-type UpdataOrInsertCb[K constraints.Ordered, V any] func(exits bool, old V) (newVal V)
+type UpdataOrInsertCb[K constraints.Ordered, V any] func(exist bool, old V) (newVal V)
100
101
// 删除或者更新
102
func (c *CMap[K, V]) UpdateOrInsert(k K, cb UpdataOrInsertCb[K, V]) {
0 commit comments