Commits

Bryan O'Sullivan committed a3e808a

Fix comments.

  • Participants
  • Parent commits 4ebfd30

Comments (0)

Files changed (2)

 
 -- -----------------------------------------------------------------------------
 -- * Transformations
--- | /O(n)/ 'map' @f @xs is the 'Text' obtained by applying @f@ to
--- each element of @xs@.  Subject to array fusion.
+-- | /O(n)/ 'map' @f @t@ is the 'Text' obtained by applying @f@ to
+-- each element of @t@.  Subject to array fusion.
 map :: (Char -> Char) -> Text -> Text
 map f t = unstream (S.map f (stream t))
 {-# INLINE [1] map #-}
     unstream (S.takeWhile p (stream t)) = takeWhile p t
   #-}
 
--- | /O(n)/ 'dropWhile' @p@ @xs@ returns the suffix remaining after
--- 'takeWhile' @p@ @xs@. This function is subject to array fusion.
+-- | /O(n)/ 'dropWhile' @p@ @t@ returns the suffix remaining after
+-- 'takeWhile' @p@ @t@. This function is subject to array fusion.
 dropWhile :: (Char -> Bool) -> Text -> Text
 dropWhile p t@(Text arr off len) = loop 0 0
   where loop !i !l | l >= len  = empty

Data/Text/Lazy.hs

     S.length (stream t) = length t
  #-}
 
--- | /O(n)/ 'map' @f @xs is the 'Text' obtained by applying @f@ to
--- each element of @xs@.  Subject to array fusion.
+-- | /O(n)/ 'map' @f @t@ is the 'Text' obtained by applying @f@ to
+-- each element of @t@.  Subject to array fusion.
 map :: (Char -> Char) -> Text -> Text
 map f t = unstream (S.map f (stream t))
 {-# INLINE [1] map #-}
     unstream (S.takeWhile p (stream t)) = takeWhile p t
   #-}
 
--- | /O(n)/ 'dropWhile' @p@ @xs@ returns the suffix remaining after
--- 'takeWhile' @p@ @xs@. This function is subject to array fusion.
+-- | /O(n)/ 'dropWhile' @p@ @t@ returns the suffix remaining after
+-- 'takeWhile' @p@ @t@. This function is subject to array fusion.
 dropWhile :: (Char -> Bool) -> Text -> Text
 dropWhile p t0 = dropWhile' t0
   where dropWhile' Empty        = Empty