Repository : ssh://[email protected]/bytestring On branch : ghc-head Link : http://git.haskell.org/?p=packages/bytestring.git;a=commit;h=bca8a9f3a2bcdef0dcc1bc99b5a71b7f9072c8a5
>--------------------------------------------------------------- commit bca8a9f3a2bcdef0dcc1bc99b5a71b7f9072c8a5 Author: Simon Meier <[email protected]> Date: Mon Mar 11 08:17:42 2013 +0100 Fix typos in docs of 'unsafePackAddress' >--------------------------------------------------------------- bca8a9f3a2bcdef0dcc1bc99b5a71b7f9072c8a5 Data/ByteString/Internal.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Data/ByteString/Internal.hs b/Data/ByteString/Internal.hs index 79ccd3f..883a879 100644 --- a/Data/ByteString/Internal.hs +++ b/Data/ByteString/Internal.hs @@ -278,8 +278,8 @@ unsafePackLenChars len cs0 = -- original Addr# this modification will be reflected in the resulting -- @ByteString@, breaking referential transparency. -- --- Note this also won't work if you Add# has embedded '\0' characters in --- the string (strlen will fail). +-- Note this also won't work if your Addr# has embedded '\0' characters in +-- the string, as @strlen@ will return too short a length. -- unsafePackAddress :: Addr# -> IO ByteString unsafePackAddress addr# = do _______________________________________________ ghc-commits mailing list [email protected] http://www.haskell.org/mailman/listinfo/ghc-commits
