summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-20 13:53:08 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-20 13:53:08 +0000
commitef3ea2dd898e51038989f9f762daaccb34f51715 (patch)
treea12b20ed1364f88c22e66d78c131ebf56b8da338 /io.c
parent57e50f7f885fe6ef51c84a0f341baaea00590218 (diff)
* io.c: fixed the wrong description of rdoc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27420 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/io.c b/io.c
index f72e51f23e..e78c67863e 100644
--- a/io.c
+++ b/io.c
@@ -6318,8 +6318,12 @@ rb_io_stdio_file(rb_io_t *fptr)
* <code>intern</code> is the internal encoding.
* <code>fmode</code> must be combination of the directives. See
* the description of class +IO+ for a description of the directives.
- * Changing reading/writing mode from the original io object is not
- * supported on some platforms, e.g. Windows.
+ *
+ * When the mode of original IO is read only, the mode cannot be changed to
+ * be writable. Similarly, the mode cannot be changed from write only to
+ * readable.
+ * If such a wrong change is directed, timing where the error actually occurs
+ * is different according to the platform.
*
* ==== Options
* <code>opt</code> can have the following keys