Bug #3063

document error in IO.new rdoc

Added by Heesob Park almost 5 years ago. Updated almost 4 years ago.

[ruby-core:29166]
Status:Closed
Priority:Normal
Assignee:-
ruby -v:ruby 1.9.1p376 (2009-12-07 revision 26041) [i386-darwin10.2.0] Backport:

Description

=begin
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 mode.
- * :binmode ::
* If the value is truth value, same as "t" in argument mode.
+ * :binmode ::
+ * If the value is truth value, same as "b" in argument mode.
* :autoclose ::
* If the value is +false+, the fd will be kept open after this
* +IO+ instance gets finalized.
=end

History

#1 Updated by Nobuyoshi Nakada almost 5 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

=begin
This issue was solved with changeset r27136.
Heesob, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.

=end

Also available in: Atom PDF