Bug #3063: document error in IO.new rdoc http://redmine.ruby-lang.org/issues/show/3063 Author: Heesob Park Status: Open, Priority: Normal Target version: 1.9.x ruby -v: ruby 1.9.1p376 (2009-12-07 revision 26041) [i386-darwin10.2.0] In IO.new rdoc, textmode and bimode flag explanation is reversed each other. "b" should be "t" and "t" should be "b". Here is a patch for SVN. --- io.c 2010-03-31 22:56:49.000000000 +0900 +++ io.c.new 2010-03-31 23:24:40.000000000 +0900 @@ -6316,9 +6316,9 @@ * :encoding :: * specifies external and internal encodings as "extern:intern". * :textmode :: - * If the value is truth value, same as "b" in argument <code>mode</code>. - * :binmode :: * If the value is truth value, same as "t" in argument <code>mode</code>. + * :binmode :: + * If the value is truth value, same as "b" in argument <code>mode</code>. * :autoclose :: * If the value is +false+, the _fd_ will be kept open after this * +IO+ instance gets finalized. ---------------------------------------- http://redmine.ruby-lang.org