Skip to content

Commit 1236f4d

Browse files
committed
Fix spelling
1 parent 957b5c4 commit 1236f4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmap/cmap.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ func (c *CMap[K, V]) Delete(key K) {
9696
item.rw.Unlock()
9797
}
9898

99-
type UpdataOrInsertCb[K constraints.Ordered, V any] func(exits bool, old V) (newVal V)
99+
type UpdataOrInsertCb[K constraints.Ordered, V any] func(exist bool, old V) (newVal V)
100100

101101
// 删除或者更新
102102
func (c *CMap[K, V]) UpdateOrInsert(k K, cb UpdataOrInsertCb[K, V]) {

0 commit comments

Comments
 (0)