Skip to content

Commit

Permalink
chore: fi typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ppoliani committed Jan 27, 2024
1 parent 8929636 commit bab9e7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/capped_hashmap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit bab9e7a

Please sign in to comment.