diff --git a/io.c b/io.c index 14807ae1ee..df05436dde 100644 --- a/io.c +++ b/io.c @@ -281,6 +281,11 @@ rb_io_get_write_io(VALUE io) * * IO.try_convert(STDOUT) # => STDOUT * IO.try_convert("STDOUT") # => nil + * + * f = open("/tmp/zz.gz") # => # + * z = Zlib::GzipReader.open(f) # => # + * IO.try_convert(z) # => # + * */ static VALUE rb_io_s_try_convert(VALUE dummy, VALUE io)