* 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
This commit is contained in:
parent
10d5f123d9
commit
6e088d299c
@ -1,3 +1,8 @@
|
||||
Mon Jun 24 02:53:09 2013 Zachary Scott <zachary@zacharyscott.net>
|
||||
|
||||
* array.c: Return value in Array overview example found by @PragTob
|
||||
[Fix GH-336] https://github.com/ruby/ruby/pull/336
|
||||
|
||||
Mon Jun 24 02:45:51 2013 Zachary Scott <zachary@zacharyscott.net>
|
||||
|
||||
* array.c (rb_ary_zip): typo by @PragTob [Fix GH-337]
|
||||
|
2
array.c
2
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]
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user