diff options
author | eregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-04-01 13:08:28 +0000 |
---|---|---|
committer | eregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-04-01 13:08:28 +0000 |
commit | f4eeca1d161d398971ef7da1c3765f206b35f477 (patch) | |
tree | c79ff369d545a2d4ad6972065410f6859ee7e7f0 /ext/zlib | |
parent | 809a7618f0ded5347d90597beb189da65bd98d90 (diff) | |
download | ruby-f4eeca1d161d398971ef7da1c3765f206b35f477.tar.gz |
* ext/zlib/zlib.c (Zlib::Inflate.new):
Fix documentation syntax and naming errors.
Based on patch by Robin Dupret. Fix GH-271.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40039 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/zlib')
-rw-r--r-- | ext/zlib/zlib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c index 170d306162..c550f46604 100644 --- a/ext/zlib/zlib.c +++ b/ext/zlib/zlib.c @@ -1850,12 +1850,12 @@ rb_inflate_s_allocate(VALUE klass) * == 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 |