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

ruby-changes:28378

From: zzak <ko1@a...>
Date: Wed, 24 Apr 2013 12:28:16 +0900 (JST)
Subject: [ruby-changes:28378] zzak:r40430 (trunk): * array.c: Fix documentation for Array#index and #replace aliases

zzak	2013-04-24 12:28:06 +0900 (Wed, 24 Apr 2013)

  New Revision: 40430

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

  Log:
    * array.c: Fix documentation for Array#index and #replace aliases
      Based on a patch by @phiggins [Fixes GH-282]

  Modified files:
    trunk/ChangeLog
    trunk/array.c

Index: array.c
===================================================================
--- array.c	(revision 40429)
+++ array.c	(revision 40430)
@@ -1342,8 +1342,6 @@ rb_ary_fetch(int argc, VALUE *argv, VALU https://github.com/ruby/ruby/blob/trunk/array.c#L1342
  *     a.index("b")              #=> 1
  *     a.index("z")              #=> nil
  *     a.index { |x| x == "b" }  #=> 1
- *
- *  This is an alias of Array#find_index.
  */
 
 static VALUE
@@ -3158,6 +3156,7 @@ rb_ary_transpose(VALUE ary) https://github.com/ruby/ruby/blob/trunk/array.c#L3156
 /*
  *  call-seq:
  *     ary.replace(other_ary)  -> ary
+ *     ary.initialize_copy(other_ary)	-> ary
  *
  *  Replaces the contents of +self+ with the contents of +other_ary+,
  *  truncating or expanding if necessary.
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 40429)
+++ ChangeLog	(revision 40430)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Apr 24 12:27:00 2013  Zachary Scott  <zachary@z...>
+
+	* array.c: Fix documentation for Array#index and #replace aliases
+	  Based on a patch by @phiggins [Fixes GH-282]
+
 Tue Apr 23 21:14:38 2013  NARUSE, Yui  <naruse@r...>
 
 	* string.c (rb_str_inspect): refix r40413, on Ruby 1.9 usual character

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

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