diff options
author | zzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-23 17:55:15 +0000 |
---|---|---|
committer | zzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-23 17:55:15 +0000 |
commit | 6e088d299c9581bc1bcd78ba423b825f55e0d23e (patch) | |
tree | f7040aefcdc21327aea543b29445d887316fd6b1 /array.c | |
parent | 10d5f123d9b4758b02998bea747659f86d29242c (diff) | |
download | ruby-6e088d299c9581bc1bcd78ba423b825f55e0d23e.tar.gz |
* 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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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] * |