Skip to content

Commit 52cae45

Browse files
authored
Remove references to codePointToInt (purescript#135)
The `codePointToInt` function is no longer available but is still referenced in a few documentation examples. Here we replace it with `fromEnum`.
1 parent e897bb7 commit 52cae45

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Data/String/CodePoints.purs

+3-3
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ length = Array.length <<< toCodePointArray
220220
-- | time linear to the length of the string.
221221
-- |
222222
-- | ```purescript
223-
-- | >>> countPrefix (\c -> codePointToInt c == 0x1D400) "𝐀𝐀 b c 𝐀"
223+
-- | >>> countPrefix (\c -> fromEnum c == 0x1D400) "𝐀𝐀 b c 𝐀"
224224
-- | 2
225225
-- | ```
226226
-- |
@@ -329,7 +329,7 @@ takeFallback n s = case uncons s of
329329
-- | in time linear to the length of the string.
330330
-- |
331331
-- | ```purescript
332-
-- | >>> takeWhile (\c -> codePointToInt c == 0x1D400) "𝐀𝐀 b c 𝐀"
332+
-- | >>> takeWhile (\c -> fromEnum c == 0x1D400) "𝐀𝐀 b c 𝐀"
333333
-- | "𝐀𝐀"
334334
-- | ```
335335
-- |
@@ -356,7 +356,7 @@ drop n s = CU.drop (CU.length (take n s)) s
356356
-- | to the length of the string.
357357
-- |
358358
-- | ```purescript
359-
-- | >>> dropWhile (\c -> codePointToInt c == 0x1D400) "𝐀𝐀 b c 𝐀"
359+
-- | >>> dropWhile (\c -> fromEnum c == 0x1D400) "𝐀𝐀 b c 𝐀"
360360
-- | " b c 𝐀"
361361
-- | ```
362362
-- |

0 commit comments

Comments
 (0)