[commit: bytestring] master: Fix documentation of complexity of toChunks (5fbaff2)
Ian Lynagh
igloo at earth.li
Wed Feb 22 21:58:01 CET 2012
Repository : ssh://darcs.haskell.org//srv/darcs/packages/bytestring
On branch : master
http://hackage.haskell.org/trac/ghc/changeset/5fbaff2da0f0fdd2e2d03c1c155dade01afa1aa3
>---------------------------------------------------------------
commit 5fbaff2da0f0fdd2e2d03c1c155dade01afa1aa3
Author: Duncan Coutts <duncan at community.haskell.org>
Date: Mon Nov 7 12:40:46 2011 +0000
Fix documentation of complexity of toChunks
>---------------------------------------------------------------
Data/ByteString/Lazy.hs | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Data/ByteString/Lazy.hs b/Data/ByteString/Lazy.hs
index df41431..30fc5b9 100644
--- a/Data/ByteString/Lazy.hs
+++ b/Data/ByteString/Lazy.hs
@@ -267,7 +267,7 @@ unpack = unpackBytes
fromChunks :: [P.ByteString] -> ByteString
fromChunks cs = L.foldr chunk Empty cs
--- | /O(n)/ Convert a lazy 'ByteString' into a list of strict 'ByteString'
+-- | /O(c)/ Convert a lazy 'ByteString' into a list of strict 'ByteString'
toChunks :: ByteString -> [P.ByteString]
toChunks cs = foldrChunks (:) [] cs
More information about the Cvs-libraries
mailing list