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

ruby-changes:38420

From: nobu <ko1@a...>
Date: Fri, 15 May 2015 18:28:42 +0900 (JST)
Subject: [ruby-changes:38420] nobu:r50501 (trunk): array.c: [DOC] return values are not new array [CI SKIP]

nobu	2015-05-15 18:28:24 +0900 (Fri, 15 May 2015)

  New Revision: 50501

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

  Log:
    array.c: [DOC] return values are not new array [CI SKIP]
    
    * array.c (rb_ary_assoc, rb_ary_rassoc): [DOC] the result when key
      was found is the existing element, not a new array.  reported by
      Giau Nguyen <giaunv AT nustechnology.com>.

  Modified files:
    trunk/ChangeLog
    trunk/array.c
Index: array.c
===================================================================
--- array.c	(revision 50500)
+++ array.c	(revision 50501)
@@ -3692,7 +3692,7 @@ rb_ary_times(VALUE ary, VALUE times) https://github.com/ruby/ruby/blob/trunk/array.c#L3692
 
 /*
  *  call-seq:
- *     ary.assoc(obj)   -> new_ary  or  nil
+ *     ary.assoc(obj)   -> element_ary  or  nil
  *
  *  Searches through an array whose elements are also arrays comparing +obj+
  *  with the first element of each contained array using <code>obj.==</code>.
@@ -3727,7 +3727,7 @@ rb_ary_assoc(VALUE ary, VALUE key) https://github.com/ruby/ruby/blob/trunk/array.c#L3727
 
 /*
  *  call-seq:
- *     ary.rassoc(obj) -> new_ary or nil
+ *     ary.rassoc(obj) -> element_ary or nil
  *
  *  Searches through the array whose elements are also arrays.
  *
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 50500)
+++ ChangeLog	(revision 50501)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri May 15 18:28:20 2015  Nobuyoshi Nakada  <nobu@r...>
+
+	* array.c (rb_ary_assoc, rb_ary_rassoc): [DOC] the result when key
+	  was found is the existing element, not a new array.  reported by
+	  Giau Nguyen <giaunv AT nustechnology.com>.
+
 Fri May 15 08:24:28 2015  Takeyuki FUJIOKA  <xibbar@r...>
 
 	* lib/cgi/cookie.rb: Implement HttpOnly flag for cookies.

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

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