aboutsummaryrefslogtreecommitdiffstats
path: root/dir.c
diff options
context:
space:
mode:
authorstomar <stomar@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-05-25 07:50:20 +0000
committerstomar <stomar@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-05-25 07:50:20 +0000
commite19d9afddbe031ce45420e603f62a3f700094573 (patch)
tree6b26f078688f2ef3fe4e55169b39dedc5954b37e /dir.c
parent6f5fd3e03dac4a5359278fb7bd721e5ef8e266ba (diff)
downloadruby-e19d9afddbe031ce45420e603f62a3f700094573.tar.gz
dir.c: docs for Dir.each_child and Dir.children
* dir.c: [DOC] fix examples for Dir.each_child and Dir.children. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58884 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'dir.c')
-rw-r--r--dir.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dir.c b/dir.c
index 987a0268de..3eb54e62a0 100644
--- a/dir.c
+++ b/dir.c
@@ -2680,7 +2680,7 @@ dir_each_child(VALUE dir)
*
* 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)
* 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