Commits

Bryan O'Sullivan committed 9fdbb37

Fix some documentation errors.

Comments (0)

Files changed (2)

 reverse t = S.reverse (stream t)
 {-# INLINE reverse #-}
 
--- | /O(m*n)/ Replace every occurrence of one substring with another.
+-- | /O(m+n)/ Replace every occurrence of one substring with another.
 replace :: Text                 -- ^ Text to search for
         -> Text                 -- ^ Replacement text
         -> Text                 -- ^ Input text

Data/Text/Lazy.hs

   where rev a Empty        = a
         rev a (Chunk t ts) = rev (Chunk (T.reverse t) a) ts
 
--- | /O(m)*O(n)/ Replace every occurrence of one substring with another.
+-- | /O(m+n)/ Replace every occurrence of one substring with another.
 replace :: Text                 -- ^ Text to search for
         -> Text                 -- ^ Replacement text
         -> Text                 -- ^ Input text