Skip to content

Commit 58909c7

Browse files
Bodigrimclyring
andauthored
Update Data/ByteString/Lazy.hs
Co-authored-by: Matthew Craven <[email protected]>
1 parent d565980 commit 58909c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Data/ByteString/Lazy.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1610,7 +1610,7 @@ illegalBufferSize handle fn sz =
16101610
-- "*** Exception: foo.txt: hGetBufSome: illegal operation (handle is closed)
16111611
--
16121612
-- The expected way of using 'hGetContents' is to open a handle,
1613-
-- pass it to 'hGetContents' and leave it to close the handle when it sees fit.
1613+
-- pass it to 'hGetContents', and leave 'hGetContents' to close the handle when it sees fit.
16141614
--
16151615
hGetContents :: Handle -> IO ByteString
16161616
hGetContents = hGetContentsN defaultChunkSize

0 commit comments

Comments
 (0)