Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
venkatsvpr committed Jan 25, 2024
1 parent c537919 commit 08e3a20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lru.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func NewWithEvict[K comparable, V any](size int, onEvicted func(key K, value V))
return
}

// WithCallback returns a SieveOption with eviction callback.
// WithCallback returns a Option with eviction callback.
func WithCallback[K comparable, V any](onEvicted func(key K, value V)) Option[K, V] {
return func(c *Cache[K, V]) {
c.onEvictedCB = onEvicted
Expand All @@ -57,7 +57,7 @@ func WithCallback[K comparable, V any](onEvicted func(key K, value V)) Option[K,
}
}

// WithSieve returns a SieveOption that enables sieve
// WithSieve returns a Option that enables sieve
func WithSieve[K comparable, V any]() Option[K, V] {
return func(c *Cache[K, V]) {
c.sieveOpt = true
Expand Down

0 comments on commit 08e3a20

Please sign in to comment.