Skip to content

Commit

Permalink
Fix documented complexity of Lazy.length
Browse files Browse the repository at this point in the history
Closes #130.
  • Loading branch information
sjakobi committed Aug 1, 2020
1 parent 93692cb commit 9e60877
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Data/ByteString/Lazy.hs
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ null Empty = True
null _ = False
{-# INLINE null #-}

-- | /O(n\/c)/ 'length' returns the length of a ByteString as an 'Int64'
-- | /O(c)/ 'length' returns the length of a ByteString as an 'Int64'
length :: ByteString -> Int64
length cs = foldlChunks (\n c -> n + fromIntegral (S.length c)) 0 cs
{-# INLINE length #-}
Expand Down

0 comments on commit 9e60877

Please sign in to comment.