1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

enhanced Array#delete_if docs by johnnymugs

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
hsbt 2013-04-22 09:35:27 +00:00
parent 67b180748b
commit e9b63c1a22

View file

@ -3021,8 +3021,8 @@ rb_ary_reject(VALUE ary)
*
* If no block is given, an Enumerator is returned instead.
*
* a = [ "a", "b", "c" ]
* a.delete_if {|x| x >= "b" } #=> ["a"]
* scores = [ 97, 42, 75 ]
* scores.delete_if {|score| score < 80 } #=> [97]
*/
static VALUE