Skip to content

Commit bd0b04f

Browse files
committed
s/map/subtree
1 parent 0e0b74d commit bd0b04f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Data/HashMap/Internal.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -942,8 +942,8 @@ unsafeInsert k0 v0 m0 = runST (go h0 k0 v0 0 m0)
942942
| otherwise = go h k x s $ BitmapIndexed (mask hy s) (A.singleton t)
943943
{-# INLINABLE unsafeInsert #-}
944944

945-
-- | Create a map from a key-value pair and a 'Leaf' or 'Collision' node with a
946-
-- different hash.
945+
-- | Create a subtree from a key-value pair and a 'Leaf' or 'Collision' node
946+
-- with a different hash.
947947
--
948948
-- It is the caller's responsibility to ensure that the HashMap argument is in
949949
-- WHNF.
@@ -952,7 +952,7 @@ two s h1 k1 v1 = two' s h1 l
952952
where !l = Leaf h1 (L k1 v1)
953953
{-# INLINE two #-}
954954

955-
-- | Create a map from two 'Leaf' or 'Collision' nodes whose hashes are
955+
-- | Create a subtree from two 'Leaf' or 'Collision' nodes whose hashes are
956956
-- distinct.
957957
--
958958
-- It is the caller's responsibility to ensure that both HashMap arguments are

0 commit comments

Comments
 (0)