We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d565980 commit 58909c7Copy full SHA for 58909c7
Data/ByteString/Lazy.hs
@@ -1610,7 +1610,7 @@ illegalBufferSize handle fn sz =
1610
-- "*** Exception: foo.txt: hGetBufSome: illegal operation (handle is closed)
1611
--
1612
-- 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.
+-- pass it to 'hGetContents', and leave 'hGetContents' to close the handle when it sees fit.
1614
1615
hGetContents :: Handle -> IO ByteString
1616
hGetContents = hGetContentsN defaultChunkSize
0 commit comments