Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Data/String/CodePoints.purs
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ uncons s = case CU.length s of
-- | ```purescript
-- | >>> length "b 𝐀𝐀 c 𝐀"
-- | 8
-- | -- compare to Data.String:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should just be changed to say Data.String.CodeUnits.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. Corrected. Thanks.

-- | -- compare to Data.String.CodeUnits:
-- | >>> length "b 𝐀𝐀 c 𝐀"
-- | 11
-- | ```
Expand Down
4 changes: 4 additions & 0 deletions src/Data/String/CodeUnits.purs
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,10 @@ uncons s = Just { head: U.charAt zero s, tail: drop one s }
-- |
-- | ```purescript
-- | length "Hello World" == 11
-- |
-- | length "𝐀A" == 3
-- | -- compare to Data.String.CodePoints:
-- | length "𝐀A" == 2
-- | ```
-- |
foreign import length :: String -> Int
Expand Down