0001-Clarify-Array-delete_if-docs.patch

Jonathan Mukai, 04/03/2013 10:34 AM

Download (744 Bytes)

View differences:

array.c
2668 2668
 *
2669 2669
 *  If no block is given, an enumerator is returned instead.
2670 2670
 *
2671
 *     a = [ "a", "b", "c" ]
2672
 *     a.delete_if {|x| x >= "b" }   #=> ["a"]
2671
 *     scores = [ 97, 42, 75 ]
2672
 *     scores.delete_if {|score| score < 80 }   #=> [97]
2673 2673
 */
2674 2674

  
2675 2675
static VALUE
2676
-