From 44abd808658570a65df2adca678c746aa0356960 Mon Sep 17 00:00:00 2001 From: akr Date: Sun, 19 Sep 2004 18:42:32 +0000 Subject: * ext/zlib/zlib.c (gzfile_read_raw): call readpartial at first. (Zlib::GzipReader#readpartial): new method. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6923 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- io.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'io.c') diff --git a/io.c b/io.c index 2c71a6d929..ccd019f4f1 100644 --- a/io.c +++ b/io.c @@ -1044,15 +1044,15 @@ read_all(fptr, siz, str) /* * call-seq: - * ios.readpartial(integer[, outbuf]) => string, outbuf + * ios.readpartial(maxlen[, outbuf]) => string, outbuf * - * Reads at most integer bytes from the I/O stream but + * Reads at most maxlen bytes from the I/O stream but * it blocks only if ios has no data immediately available. * If the optional outbuf argument is present, * it must reference a String, which will receive the data. * It raises EOFError on end of file. * - * readpartial is designed for streams such as pipe, socket, etc. + * readpartial is designed for streams such as pipe, socket, tty, etc. * It blocks only when no data immediately available. * This means that it blocks only when following all conditions hold. * * the stdio buffer in the IO object is empty. -- cgit v1.2.3