fixed doc for Data.Text.Unsafe.unsafeTail
commitf9279de9b68ec7d8580c3eb1ce39e23c0481bb23
authorstaffehn <fdsteffahn@gmail.com>
dateMon 30 Sep 2013, 22:58 (13 years ago)
parent663deb3
Data/Text/Unsafe.hs+1−1
@@ -51,7 +51,7 @@ unsafeHead (Text arr off _len)
5151 n = A.unsafeIndex arr (off+1)
5252{-# INLINE unsafeHead #-}
5353
54−-- | /O(1)/ A variant of 'tail' for non-empty 'Text'. 'unsafeHead'
54+-- | /O(1)/ A variant of 'tail' for non-empty 'Text'. 'unsafeTail'
5555-- omits the check for the empty case, so there is an obligation on
5656-- the programmer to provide a proof that the 'Text' is non-empty.
5757unsafeTail :: Text -> Text