mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* array.c: Fix rdoc for Array#select!
patched by b t [ruby-core:42478] [Bug #5998] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34535 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
59a1344808
commit
6a8c05e314
1 changed files with 2 additions and 2 deletions
4
array.c
4
array.c
|
@ -2376,7 +2376,7 @@ rb_ary_select(VALUE ary)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* call-seq:
|
* call-seq:
|
||||||
* ary.select! {|item| block } -> new_ary or nil
|
* ary.select! {|item| block } -> ary or nil
|
||||||
* ary.select! -> an_enumerator
|
* ary.select! -> an_enumerator
|
||||||
*
|
*
|
||||||
* Invokes the block passing in successive elements from
|
* Invokes the block passing in successive elements from
|
||||||
|
@ -4475,7 +4475,7 @@ rb_ary_repeated_combination(VALUE ary, VALUE num)
|
||||||
* ary.product(other_ary, ...) -> new_ary
|
* ary.product(other_ary, ...) -> new_ary
|
||||||
* ary.product(other_ary, ...) { |p| block } -> ary
|
* ary.product(other_ary, ...) { |p| block } -> ary
|
||||||
*
|
*
|
||||||
* Returns an array of all combinations of elements from all arrays,
|
* Returns an array of all combinations of elements from all arrays.
|
||||||
* The length of the returned array is the product of the length
|
* The length of the returned array is the product of the length
|
||||||
* of +self+ and the argument arrays.
|
* of +self+ and the argument arrays.
|
||||||
* If given a block, #product will yield all combinations
|
* If given a block, #product will yield all combinations
|
||||||
|
|
Loading…
Reference in a new issue