[commit: packages/bytestring] master: hGet returns 'empty' not 'null' at EOF (8d512e1)

git at git.haskell.org git at git.haskell.org
Fri Jan 23 22:43:54 UTC 2015


Repository : ssh://git@git.haskell.org/bytestring

On branch  : master
Link       : http://git.haskell.org/packages/bytestring.git/commitdiff/8d512e1c622cbe44976ca971af17911b0603edde

>---------------------------------------------------------------

commit 8d512e1c622cbe44976ca971af17911b0603edde
Author: David Turner <dave.c.turner at gmail.com>
Date:   Fri Dec 19 15:26:30 2014 +0000

    hGet returns 'empty' not 'null' at EOF


>---------------------------------------------------------------

8d512e1c622cbe44976ca971af17911b0603edde
 Data/ByteString.hs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Data/ByteString.hs b/Data/ByteString.hs
index 4932a54..bf33a99 100644
--- a/Data/ByteString.hs
+++ b/Data/ByteString.hs
@@ -1713,7 +1713,7 @@ putStrLn = hPutStrLn stdout
 -- is far more efficient than reading the characters into a 'String'
 -- and then using 'pack'. First argument is the Handle to read from, 
 -- and the second is the number of bytes to read. It returns the bytes
--- read, up to n, or 'null' if EOF has been reached.
+-- read, up to n, or 'empty' if EOF has been reached.
 --
 -- 'hGet' is implemented in terms of 'hGetBuf'.
 --



More information about the ghc-commits mailing list