on master help sign in
Fix some documentation errors.
40452fcBryan O'Sullivan
Data/Text.hs+1−1
@@ -400,7 +400,7 @@ reverse :: Text -> Text
400reverse t = S.reverse (stream t)
400reverse t = S.reverse (stream t)
401{-# INLINE reverse #-}
401{-# INLINE reverse #-}
402
402
403−-- | /O(m*n)/ Replace every occurrence of one substring with another.
403+-- | /O(m+n)/ Replace every occurrence of one substring with another.
404replace :: Text -- ^ Text to search for
404replace :: Text -- ^ Text to search for
405 -> Text -- ^ Replacement text
405 -> Text -- ^ Replacement text
406 -> Text -- ^ Input text
406 -> Text -- ^ Input text
Data/Text/Lazy.hs+1−1
@@ -445,7 +445,7 @@ reverse = rev Empty
445 where rev a Empty = a
445 where rev a Empty = a
446 rev a (Chunk t ts) = rev (Chunk (T.reverse t) a) ts
446 rev a (Chunk t ts) = rev (Chunk (T.reverse t) a) ts
447
447
448−-- | /O(m)*O(n)/ Replace every occurrence of one substring with another.
448+-- | /O(m+n)/ Replace every occurrence of one substring with another.
449replace :: Text -- ^ Text to search for
449replace :: Text -- ^ Text to search for
450 -> Text -- ^ Replacement text
450 -> Text -- ^ Replacement text
451 -> Text -- ^ Input text
451 -> Text -- ^ Input text