public
Created

  • Download Gist
gistfile1.diff
Diff
1 2 3 4 5 6 7 8 9 10 11 12 13
diff --git a/kernel/common/io.rb b/kernel/common/io.rb
index 8319599..4fd1fab 100644
--- a/kernel/common/io.rb
+++ b/kernel/common/io.rb
@@ -1390,7 +1390,7 @@ class IO
# f2.readlines[0] #=> "This is line one\n"
# f2.reopen(f1) #=> #<File:testfile>
# f2.readlines[0] #=> "This is line one\n"
- def reopen(other, mode="r+")
+ def reopen(other, mode="a+")
if other.respond_to? :to_io
flush

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.