Project

General

Profile

Actions

Bug #3063

closed

document error in IO.new rdoc

Added by phasis68 (Heesob Park) over 14 years ago. Updated over 13 years ago.

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

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
Actions

Also available in: Atom PDF

Like0
Like0