Skip to content

Commit b3f4e61

Browse files
Lampesebobzhang
authored andcommitted
chore: patch diff
1 parent 5bae064 commit b3f4e61

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

immut/hashmap/HAMT.mbt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ pub fn filter[K : Eq + Hash, V](self : T[K, V], pred : (V) -> Bool) -> T[K, V] {
158158
match bucket.filter(pred) {
159159
Some(Just_One(k, v)) => Leaf(k, v)
160160
Some(b) => Collision(b)
161-
None => Empty
161+
None => Empty
162162
}
163163
Branch(children) => {
164164
let mut result = Empty
@@ -196,7 +196,7 @@ pub fn fold_with_key[K, V, A](
196196
Empty => go(stack, acc)
197197
Leaf(k, v) => go(stack, f(acc, k, v))
198198
Collision(bucket) => go(stack, bucket.foldl_with_key(init=acc, f))
199-
Branch(children) => {
199+
Branch(children) =>
200200
if index < children.data.length() {
201201
let child = children.data[index]
202202
stack.push((node, index + 1))
@@ -205,7 +205,6 @@ pub fn fold_with_key[K, V, A](
205205
} else {
206206
go(stack, acc)
207207
}
208-
}
209208
}
210209
}
211210

0 commit comments

Comments
 (0)