[前][次][番号順一覧][スレッド一覧]

ruby-changes:9112

From: akr <ko1@a...>
Date: Fri, 12 Dec 2008 01:18:05 +0900 (JST)
Subject: [ruby-changes:9112] Ruby:r20649 (ruby_1_9_1): rdoc fix.

akr	2008-12-12 01:17:56 +0900 (Fri, 12 Dec 2008)

  New Revision: 20649

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=20649

  Log:
    rdoc fix.

  Modified files:
    branches/ruby_1_9_1/io.c

Index: ruby_1_9_1/io.c
===================================================================
--- ruby_1_9_1/io.c	(revision 20648)
+++ ruby_1_9_1/io.c	(revision 20649)
@@ -4698,9 +4698,9 @@
  *    nkf_io = IO.popen("nkf -e filename", :external_encoding=>"EUC-JP")
  *    euc_jp_string = nkf_io.read
  *
- *    # merge standard output and standard error using
- *    # spawn option.  See the document of Kernel.spawn.
- *    ls_io = IO.popen(["ls", "/", STDERR=>[:child, STDOUT]])
+ *    # discard standard error using spawn option.
+ *    # See the document of Kernel.spawn.
+ *    ls_io = IO.popen(["ls", "/", :err=>"/dev/null"])
  *    ls_result_with_error = ls_io.read
  *
  *  Raises exceptions which <code>IO.pipe</code> and

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]