Skip to content

Commit 1f4640d

Browse files
AndreasPKtreeowl
authored andcommitted
Update documentation for strict insertWithKey.
The documentation describes the arguments as `insertWithKey f key value mp` . This updates the later referenced argument names to match these.
1 parent 6dc1087 commit 1f4640d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Data/IntMap/Strict.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ insertWith f k x t
431431
-- > insertWithKey f 7 "xxx" (fromList [(5,"a"), (3,"b")]) == fromList [(3, "b"), (5, "a"), (7, "xxx")]
432432
-- > insertWithKey f 5 "xxx" empty == singleton 5 "xxx"
433433
--
434-
-- If the key exists in the map, this function is lazy in @x@ but strict
434+
-- If the key exists in the map, this function is lazy in @value@ but strict
435435
-- in the result of @f@.
436436

437437
insertWithKey :: (Key -> a -> a -> a) -> Key -> a -> IntMap a -> IntMap a

0 commit comments

Comments
 (0)