From bddadeeae4a5b40461c4f111038015f8c3ca8ada Mon Sep 17 00:00:00 2001 From: naruse Date: Tue, 26 Jan 2010 13:31:12 +0000 Subject: * ext/zlib/zlib.c (rb_gzfile_s_wrap): add rdoc. [Bug #2656] patched by Hugh Sasse [ruby-core:27692] [ruby-core:27852] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26429 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/zlib/zlib.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ext') diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c index bdc0a5eadc..cfe6dd23cb 100644 --- a/ext/zlib/zlib.c +++ b/ext/zlib/zlib.c @@ -2420,12 +2420,14 @@ gzfile_ensure_close(VALUE obj) } /* - * Creates a GzipFile object associated with ((|io|)), and + * call-seq: Zlib::GzipFile.wrap(io) { |gz| ... } + * + * Creates a GzipFile object associated with +io+, and * executes the block with the newly created GzipFile object, * just like File.open. The GzipFile object will be closed * automatically after executing the block. If you want to keep * the associated IO object opening, you may call - * (()) method in the block. + * +Zlib::GzipFile#finish+ method in the block. */ static VALUE rb_gzfile_s_wrap(int argc, VALUE *argv, VALUE klass) -- cgit v1.2.3