1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Indicate find_all and select methods are aliases.

This matches the documentation for `Enumerable::inject` and `Enumerable::reduce` which are also aliases.
This commit is contained in:
Corey Farwell 2017-04-17 17:58:51 -04:00 committed by 卜部昌平
parent 0fafb83b38
commit 69aa927a40

3
enum.c
View file

@ -426,6 +426,9 @@ enum_size_over_p(VALUE obj, long n)
* Returns an array containing all elements of +enum+
* for which the given +block+ returns a true value.
*
* The <i>find_all</i> and <i>select</i> methods are aliases.
* There is no performance benefit to either.
*
* If no block is given, an Enumerator is returned instead.
*
*