summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/zlib/zlib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c
index 170d306..c550f46 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