Skip to content

Commit

Permalink
Remove references to codePointToInt (#135)
Browse files Browse the repository at this point in the history
The `codePointToInt` function is no longer available but is still
referenced in a few documentation examples. Here we replace it with
`fromEnum`.
  • Loading branch information
emiel authored Dec 2, 2020
1 parent e897bb7 commit 52cae45
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Data/String/CodePoints.purs
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ length = Array.length <<< toCodePointArray
-- | time linear to the length of the string.
-- |
-- | ```purescript
-- | >>> countPrefix (\c -> codePointToInt c == 0x1D400) "𝐀𝐀 b c 𝐀"
-- | >>> countPrefix (\c -> fromEnum c == 0x1D400) "𝐀𝐀 b c 𝐀"
-- | 2
-- | ```
-- |
Expand Down Expand Up @@ -329,7 +329,7 @@ takeFallback n s = case uncons s of
-- | in time linear to the length of the string.
-- |
-- | ```purescript
-- | >>> takeWhile (\c -> codePointToInt c == 0x1D400) "𝐀𝐀 b c 𝐀"
-- | >>> takeWhile (\c -> fromEnum c == 0x1D400) "𝐀𝐀 b c 𝐀"
-- | "𝐀𝐀"
-- | ```
-- |
Expand All @@ -356,7 +356,7 @@ drop n s = CU.drop (CU.length (take n s)) s
-- | to the length of the string.
-- |
-- | ```purescript
-- | >>> dropWhile (\c -> codePointToInt c == 0x1D400) "𝐀𝐀 b c 𝐀"
-- | >>> dropWhile (\c -> fromEnum c == 0x1D400) "𝐀𝐀 b c 𝐀"
-- | " b c 𝐀"
-- | ```
-- |
Expand Down

0 comments on commit 52cae45

Please sign in to comment.