We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d3e2f7 commit c9464f6Copy full SHA for c9464f6
src/Data/String/CodeUnits.purs
@@ -297,9 +297,9 @@ dropWhile :: (Char -> Boolean) -> String -> String
297
dropWhile p s = drop (countPrefix p s) s
298
299
-- | Returns the substring at indices `[begin, end)`.
300
--- | If either index is negative, it is normalised to `length s - index`,
301
--- | where `s` is the input string. `""` is returned if either
302
--- | index is out of bounds or if `begin > end` after normalisation.
+-- | If either index is negative, it is normalised to `length s + index`,
+-- | where `s` is the input string. `""` is returned if
+-- | `begin > end` after normalisation.
303
-- |
304
-- | ```purescript
305
-- | slice 0 0 "purescript" == ""
0 commit comments