mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	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>. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50501 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									d70228d105
								
							
						
					
					
						commit
						d28001f01a
					
				
					 2 changed files with 8 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -1,3 +1,9 @@
 | 
			
		|||
Fri May 15 18:28:20 2015  Nobuyoshi Nakada  <nobu@ruby-lang.org>
 | 
			
		||||
 | 
			
		||||
	* 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@ruby-lang.org>
 | 
			
		||||
 | 
			
		||||
	* lib/cgi/cookie.rb: Implement HttpOnly flag for cookies.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										4
									
								
								array.c
									
										
									
									
									
								
							
							
						
						
									
										4
									
								
								array.c
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -3692,7 +3692,7 @@ rb_ary_times(VALUE ary, VALUE times)
 | 
			
		|||
 | 
			
		||||
/*
 | 
			
		||||
 *  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)
 | 
			
		|||
 | 
			
		||||
/*
 | 
			
		||||
 *  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.
 | 
			
		||||
 *
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue