@@ -1277,9 +1277,9 @@ breakOnEnd pat src = (reverse b, reverse a)
1278-- Examples:
1278-- Examples:
1280−-- > find "::" ""
1280+-- > breakOnAll "::" ""
1281-- > ==> []
1281-- > ==> []
1282−-- > find "/" "a/b/c/"
1282+-- > breakOnAll "/" "a/b/c/"
1283-- > ==> [("a", "/b/c/"), ("a/b", "/c/"), ("a/b/c", "/")]
1283-- > ==> [("a", "/b/c/"), ("a/b", "/c/"), ("a/b/c", "/")]
1285-- In (unlikely) bad cases, this function's time complexity degrades
1285-- In (unlikely) bad cases, this function's time complexity degrades
@@ -1314,7 +1314,7 @@ breakOnAll pat src@(Text arr off slen)
1314-- For example, suppose you have a string that you want to split on
1314-- For example, suppose you have a string that you want to split on
1315-- the substring @\"::\"@, such as @\"foo::bar::quux\"@. Instead of
1315-- the substring @\"::\"@, such as @\"foo::bar::quux\"@. Instead of
1316-- searching for the index of @\"::\"@ and taking the substrings
1316-- searching for the index of @\"::\"@ and taking the substrings
1317−-- before and after that index, you would instead use @find \"::\"@.
1317+-- before and after that index, you would instead use @breakOnAll \"::\"@.
1319-- | /O(n)/ 'Text' index (subscript) operator, starting from 0.
1319-- | /O(n)/ 'Text' index (subscript) operator, starting from 0.
1320index :: Text -> Int -> Char
1320index :: Text -> Int -> Char