[commit: packages/bytestring] ghc-head: Fix typos in docs of 'unsafePackAddress' (bca8a9f)
git at git.haskell.org
git at git.haskell.org
Thu Aug 29 10:19:08 CEST 2013
Repository : ssh://git@git.haskell.org/bytestring
On branch : ghc-head
Link : http://git.haskell.org/?p=packages/bytestring.git;a=commit;h=bca8a9f3a2bcdef0dcc1bc99b5a71b7f9072c8a5
>---------------------------------------------------------------
commit bca8a9f3a2bcdef0dcc1bc99b5a71b7f9072c8a5
Author: Simon Meier <simon.meier at erudify.ch>
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
More information about the ghc-commits
mailing list