mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 13:04:13 +02:00
dir.c: fix rdoc [ci skip]
* dir.c (dir_s_aref): fix rdoc. `Dir.glob` allows an array but `Dir[]` not. the former accepts an optional parameter `flags`, while the latter accepts arbitrary number of arguments but no `flags`. [ruby-core:65265] [Bug #10294] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47850 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
26a29ffbed
commit
abafe3354f
2 changed files with 7 additions and 2 deletions
2
dir.c
2
dir.c
|
@ -1869,11 +1869,9 @@ dir_globs(long argc, const VALUE *argv, int flags)
|
|||
|
||||
/*
|
||||
* call-seq:
|
||||
* Dir[ array ] -> array
|
||||
* Dir[ string [, string ...] ] -> array
|
||||
*
|
||||
* Equivalent to calling
|
||||
* <code>Dir.glob(</code><i>array,</i><code>0)</code> and
|
||||
* <code>Dir.glob([</code><i>string,...</i><code>],0)</code>.
|
||||
*
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue