Skip to content

Commit

Permalink
Fix spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
guonaihong committed Jul 30, 2024
1 parent 957b5c4 commit 1236f4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmap/cmap.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func (c *CMap[K, V]) Delete(key K) {
item.rw.Unlock()
}

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)

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

0 comments on commit 1236f4d

Please sign in to comment.