Skip to content

Commit

Permalink
Properly markup <$> in IntMap alterF docs (#877)
Browse files Browse the repository at this point in the history
  • Loading branch information
Flupp authored Aug 6, 2024
1 parent 120a4b6 commit ddd130a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion containers/src/Data/IntMap/Internal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1032,7 +1032,7 @@ alter f k Nil = case f Nothing of

-- | \(O(\min(n,W))\). The expression (@'alterF' f k map@) alters the value @x@ at
-- @k@, or absence thereof. 'alterF' can be used to inspect, insert, delete,
-- or update a value in an 'IntMap'. In short : @'lookup' k <$> 'alterF' f k m = f
-- or update a value in an 'IntMap'. In short : @'lookup' k \<$\> 'alterF' f k m = f
-- ('lookup' k m)@.
--
-- Example:
Expand Down
2 changes: 1 addition & 1 deletion containers/src/Data/IntMap/Strict/Internal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ alter f !k t =

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

0 comments on commit ddd130a

Please sign in to comment.