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