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

ruby-changes:35768

From: nobu <ko1@a...>
Date: Thu, 9 Oct 2014 00:53:23 +0900 (JST)
Subject: [ruby-changes:35768] nobu:r47850 (trunk): dir.c: fix rdoc [ci skip]

nobu	2014-10-09 00:53:11 +0900 (Thu, 09 Oct 2014)

  New Revision: 47850

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

  Log:
    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]

  Modified files:
    trunk/ChangeLog
    trunk/dir.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 47849)
+++ ChangeLog	(revision 47850)
@@ -1,3 +1,10 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Thu Oct  9 00:53:15 2014  Nobuyoshi Nakada  <nobu@r...>
+
+	* 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]
+
 Wed Oct  8 21:44:10 2014  Masaki Suketa <masaki.suketa@n...>
 
 	* ext/win32ole/win32ole_variable.c: use typed data.
Index: dir.c
===================================================================
--- dir.c	(revision 47849)
+++ dir.c	(revision 47850)
@@ -1869,11 +1869,9 @@ dir_globs(long argc, const VALUE *argv, https://github.com/ruby/ruby/blob/trunk/dir.c#L1869
 
 /*
  *  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>.
  *
  */

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

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