From 08e3a205ed127d316a7e4292c6f951c740c48863 Mon Sep 17 00:00:00 2001 From: Venkat Date: Wed, 24 Jan 2024 20:01:11 -0800 Subject: [PATCH] typo --- lru.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lru.go b/lru.go index ea7ce35..a967a93 100644 --- a/lru.go +++ b/lru.go @@ -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 @@ -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