on master help sign in
Merge pull request #56 from staffehn/patch-1

fixed doc for Data.Text.Unsafe.unsafeTail

commit37447687f1a043d4115211caefa932f3bf4afa7e authorBryan O'Sullivan <bos@serpentine.com> dateSat 12 Oct 2013, 14:03 (13 years ago) parent663deb3f9279de
1 file changed+1−1
Data/Text/Unsafe.hs+1−1
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