From bab9e7aaf19fb559dc152c82d3d515446a9a3732 Mon Sep 17 00:00:00 2001 From: ppoliani Date: Sat, 27 Jan 2024 18:41:02 +0200 Subject: [PATCH] chore: fi typo --- src/capped_hashmap.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/capped_hashmap.rs b/src/capped_hashmap.rs index 2ddc48b..f2df036 100644 --- a/src/capped_hashmap.rs +++ b/src/capped_hashmap.rs @@ -30,7 +30,7 @@ where self.last_tasks.push_front(k); if self.last_tasks.len() == Self::MAX_LEN { - // remove the oldest item. We an safely unwrap because we know the vec is no empty at this point + // remove the oldest item. We an safely unwrap because we know the last_tasks is not empty at this point let key = self.last_tasks.pop_back().unwrap(); self.remove(&key);