Skip to content

Commit 5f77e92

Browse files
committed
Improve variable naming
1 parent 8178144 commit 5f77e92

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Data/HashMap/Internal.hs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1200,13 +1200,13 @@ deleteFromSubtree !s !h !k = \case
12001200
st' | st' `ptrEq` st -> t
12011201
| otherwise -> Full (updateFullArray ary i st')
12021202
where i = index h s
1203-
t@(Collision hy v)
1203+
t@(Collision hy ary)
12041204
| h == hy
1205-
, Just i <- indexOf k v
1206-
-> if A.length v == 2
1207-
then case A.index# v (otherOfOneOrZero i) of
1205+
, Just i <- indexOf k ary
1206+
-> if A.length ary == 2
1207+
then case A.index# ary (otherOfOneOrZero i) of
12081208
(# l #) -> Leaf h l
1209-
else Collision h (A.delete v i)
1209+
else Collision h (A.delete ary i)
12101210
| otherwise -> t
12111211
{-# INLINABLE deleteFromSubtree #-}
12121212

0 commit comments

Comments
 (0)