Skip to content

Commit 9968b3f

Browse files
committed
Merge pull request #40 from hdgarrood/fix-split-docs
Fix split docs, fixes #30
2 parents 7aec0e3 + 5bf639a commit 9968b3f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Data/String.purs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,9 @@ foreign import drop :: Int -> String -> String
187187
-- | of the string for which the predicate holds.
188188
foreign import count :: (Char -> Boolean) -> String -> Int
189189

190-
-- | Returns the substrings of the first string separated along occurences
191-
-- | of the second string.
190+
-- | Returns the substrings of the second string separated along occurences
191+
-- | of the first string.
192+
-- | * `split " " "hello world" == ["hello", "world"]`
192193
foreign import split :: String -> String -> Array String
193194

194195
-- | Converts the string into an array of characters.

0 commit comments

Comments
 (0)