summaryrefslogtreecommitdiff
path: root/array.c
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-04-22 09:35:27 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-04-22 09:35:27 +0000
commite9b63c1a225f039b90faf16c5969c658d925dd37 (patch)
treef8c2a75f73ce68b24c33bade2bec4f61c2a8b238 /array.c
parent67b180748b7e8e551f46a072013162db83ac703f (diff)
enhanced Array#delete_if docs by johnnymugs
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'array.c')
-rw-r--r--array.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/array.c b/array.c
index 38e7857..54c270c 100644
--- a/array.c
+++ b/array.c
@@ -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