Skip to content

Commit 1a2df5b

Browse files
authored
Merge pull request #70 from leighman/master
Update documentation - split now takes a Pattern
2 parents 6843c74 + 332077b commit 1a2df5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Data/String.purs

+1-1
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ foreign import count :: (Char -> Boolean) -> String -> Int
228228

229229
-- | Returns the substrings of the second string separated along occurences
230230
-- | of the first string.
231-
-- | * `split " " "hello world" == ["hello", "world"]`
231+
-- | * `split (Pattern " ") "hello world" == ["hello", "world"]`
232232
foreign import split :: Pattern -> String -> Array String
233233

234234
-- | Returns the substrings of split at the given index, if the index is within bounds.

0 commit comments

Comments
 (0)