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

ruby-changes:46769

From: stomar <ko1@a...>
Date: Thu, 25 May 2017 16:50:25 +0900 (JST)
Subject: [ruby-changes:46769] stomar:r58884 (trunk): dir.c: docs for Dir.each_child and Dir.children

stomar	2017-05-25 16:50:20 +0900 (Thu, 25 May 2017)

  New Revision: 58884

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58884

  Log:
    dir.c: docs for Dir.each_child and Dir.children
    
    * dir.c: [DOC] fix examples for Dir.each_child and Dir.children.

  Modified files:
    trunk/dir.c
Index: dir.c
===================================================================
--- dir.c	(revision 58883)
+++ dir.c	(revision 58884)
@@ -2680,7 +2680,7 @@ dir_each_child(VALUE dir) https://github.com/ruby/ruby/blob/trunk/dir.c#L2680
  *
  *  If no block is given, an enumerator is returned instead.
  *
- *     Dir.foreach("testdir") {|x| puts "Got #{x}" }
+ *     Dir.each_child("testdir") {|x| puts "Got #{x}" }
  *
  *  <em>produces:</em>
  *
@@ -2719,7 +2719,7 @@ dir_collect_children(VALUE dir) https://github.com/ruby/ruby/blob/trunk/dir.c#L2719
  *  The optional <i>encoding</i> keyword argument specifies the encoding of the
  *  directory. If not specified, the filesystem encoding is used.
  *
- *     Dir.entries("testdir")   #=> ["config.h", "main.rb"]
+ *     Dir.children("testdir")   #=> ["config.h", "main.rb"]
  *
  */
 static VALUE

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

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