summaryrefslogtreecommitdiff
path: root/array.c
diff options
context:
space:
mode:
authorzzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-23 17:55:15 +0000
committerzzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-23 17:55:15 +0000
commit6e088d299c9581bc1bcd78ba423b825f55e0d23e (patch)
treef7040aefcdc21327aea543b29445d887316fd6b1 /array.c
parent10d5f123d9b4758b02998bea747659f86d29242c (diff)
* array.c: Return value in Array overview example found by @PragTob
[Fix GH-336] https://github.com/ruby/ruby/pull/336 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41593 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'array.c')
-rw-r--r--array.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/array.c b/array.c
index bb631c8..269400b 100644
--- a/array.c
+++ b/array.c
@@ -5425,7 +5425,7 @@ rb_ary_drop_while(VALUE ary)
*
* arr = [1, 2, 3, 4, 5, 6]
* arr.select { |a| a > 3 } #=> [4, 5, 6]
- * arr.reject { |a| a < 3 } #=> [4, 5, 6]
+ * arr.reject { |a| a < 3 } #=> [3, 4, 5, 6]
* arr.drop_while { |a| a < 4 } #=> [4, 5, 6]
* arr #=> [1, 2, 3, 4, 5, 6]
*