Commit b40c6f6
committed
Fix #7
<= is the right check - < is too strict, and that 'strictness' is
only required when done inside the 'if self.nodes.len() >= self.capacity {' block
above, to confirm evict() did evict an item.
The line was moved around, but I failed to git add the fixed condition.1 parent a4ecc92 commit b40c6f6
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
437 | 437 | | |
438 | 438 | | |
439 | 439 | | |
440 | | - | |
| 440 | + | |
441 | 441 | | |
442 | 442 | | |
443 | 443 | | |
| |||
0 commit comments