@@ -1277,9 +1277,9 @@ breakOnEnd pat src = (reverse b, reverse a)
12771277--
12781278-- Examples:
12791279--
1280−-- > find "::" ""
1280+-- > breakOnAll "::" ""
12811281-- > ==> []
1282−-- > find "/" "a/b/c/"
1282+-- > breakOnAll "/" "a/b/c/"
12831283-- > ==> [("a", "/b/c/"), ("a/b", "/c/"), ("a/b/c", "/")]
12841284--
12851285-- In (unlikely) bad cases, this function's time complexity degrades
@@ -1314,7 +1314,7 @@ breakOnAll pat src@(Text arr off slen)
13141314-- For example, suppose you have a string that you want to split on
13151315-- the substring @\"::\"@, such as @\"foo::bar::quux\"@. Instead of
13161316-- 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 \"::\"@.
13181318
13191319-- | /O(n)/ 'Text' index (subscript) operator, starting from 0.
13201320index :: Text -> Int -> Char