From 28ea9e8a5465281ddab54564fee765e5503cbb50 Mon Sep 17 00:00:00 2001 From: cui fliter Date: Wed, 24 Aug 2022 17:01:35 +0800 Subject: [PATCH] fix typo Signed-off-by: cui fliter --- lfu.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lfu.go b/lfu.go index 610843e..9183643 100644 --- a/lfu.go +++ b/lfu.go @@ -225,7 +225,7 @@ func (c *LFUCache) increment(item *lfuItem) { item.freqElement = nextFreqElement } -// evict removes the least frequence item from the cache. +// evict removes the least frequent item from the cache. func (c *LFUCache) evict(count int) { entry := c.freqList.Front() for i := 0; i < count; {