Skip to content

Commit ddd130a

Browse files
authored
Properly markup <$> in IntMap alterF docs (#877)
1 parent 120a4b6 commit ddd130a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

containers/src/Data/IntMap/Internal.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1032,7 +1032,7 @@ alter f k Nil = case f Nothing of
10321032

10331033
-- | \(O(\min(n,W))\). The expression (@'alterF' f k map@) alters the value @x@ at
10341034
-- @k@, or absence thereof. 'alterF' can be used to inspect, insert, delete,
1035-
-- or update a value in an 'IntMap'. In short : @'lookup' k <$> 'alterF' f k m = f
1035+
-- or update a value in an 'IntMap'. In short : @'lookup' k \<$\> 'alterF' f k m = f
10361036
-- ('lookup' k m)@.
10371037
--
10381038
-- Example:

containers/src/Data/IntMap/Strict/Internal.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ alter f !k t =
617617

618618
-- | \(O(\log n)\). The expression (@'alterF' f k map@) alters the value @x@ at
619619
-- @k@, or absence thereof. 'alterF' can be used to inspect, insert, delete,
620-
-- or update a value in an 'IntMap'. In short : @'lookup' k <$> 'alterF' f k m = f
620+
-- or update a value in an 'IntMap'. In short : @'lookup' k \<$\> 'alterF' f k m = f
621621
-- ('lookup' k m)@.
622622
--
623623
-- Example:

0 commit comments

Comments
 (0)