Skip to content

Commit c9464f6

Browse files
committed
Update a doc comment
1 parent 3d3e2f7 commit c9464f6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Data/String/CodeUnits.purs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -297,9 +297,9 @@ dropWhile :: (Char -> Boolean) -> String -> String
297297
dropWhile p s = drop (countPrefix p s) s
298298

299299
-- | 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.
300+
-- | If either index is negative, it is normalised to `length s + index`,
301+
-- | where `s` is the input string. `""` is returned if
302+
-- | `begin > end` after normalisation.
303303
-- |
304304
-- | ```purescript
305305
-- | slice 0 0 "purescript" == ""

0 commit comments

Comments
 (0)