ruby-changes:27987
From: eregon <ko1@a...>
Date: Mon, 1 Apr 2013 22:08:37 +0900 (JST)
Subject: [ruby-changes:27987] eregon:r40039 (trunk): * ext/zlib/zlib.c (Zlib::Inflate.new):
eregon 2013-04-01 22:08:28 +0900 (Mon, 01 Apr 2013) New Revision: 40039 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=40039 Log: * ext/zlib/zlib.c (Zlib::Inflate.new): Fix documentation syntax and naming errors. Based on patch by Robin Dupret. Fix GH-271. Modified files: trunk/ChangeLog trunk/ext/zlib/zlib.c Index: ChangeLog =================================================================== --- ChangeLog (revision 40038) +++ ChangeLog (revision 40039) @@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Mon Apr 1 22:08:02 2013 Benoit Daloze <eregontp@g...> + + * ext/zlib/zlib.c (Zlib::Inflate.new): + Fix documentation syntax and naming errors. + Based on patch by Robin Dupret. Fix GH-271. + Mon Apr 1 21:22:31 2013 Tanaka Akira <akr@f...> * test/-ext-/num2int/test_num2int.rb: Test small bignums. Index: ext/zlib/zlib.c =================================================================== --- ext/zlib/zlib.c (revision 40038) +++ ext/zlib/zlib.c (revision 40039) @@ -1850,12 +1850,12 @@ rb_inflate_s_allocate(VALUE klass) https://github.com/ruby/ruby/blob/trunk/ext/zlib/zlib.c#L1850 * == Example * * open "compressed.file" do |compressed_io| - * inflate = Zlib::Inflate.new(Zlib::MAX_WBITS + 32) + * zi = Zlib::Inflate.new(Zlib::MAX_WBITS + 32) * * begin * open "uncompressed.file", "w+" do |uncompressed_io| * uncompressed_io << zi.inflate(compressed_io.read) - * } + * end * ensure * zi.close * end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/