mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 16:21:33 +11:00
Add comment explaining the continue
statement
This commit is contained in:
parent
01862901c2
commit
a44b8a4013
|
@ -758,6 +758,10 @@ impl<K, V, ALLOCATOR: ClonableAllocator> NodeStorage<K, V, ALLOCATOR> {
|
|||
if let Some((k, v)) = node.key_value_mut() {
|
||||
if !f(k, v) {
|
||||
self.remove_from_location(i);
|
||||
|
||||
// Need to continue before adding 1 to i because remove from location could
|
||||
// put the element which was next into the ith location in the nodes array,
|
||||
// so we need to check if that one needs removing too.
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue