summaryrefslogtreecommitdiff
path: root/enum.c
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2017-04-17 17:58:51 -0400
committer卜部昌平 <shyouhei@ruby-lang.org>2019-12-11 11:15:12 +0900
commit69aa927a40618591082085fe04c010d516dd50d3 (patch)
treef70fb9c7ad748436c7ad3e53f874f7707b634814 /enum.c
parent0fafb83b3878b11de18de7a2d09927842eaf5fb7 (diff)
downloadruby-69aa927a40618591082085fe04c010d516dd50d3.tar.gz
Indicate `find_all` and `select` methods are aliases.
This matches the documentation for `Enumerable::inject` and `Enumerable::reduce` which are also aliases.
Diffstat (limited to 'enum.c')
-rw-r--r--enum.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/enum.c b/enum.c
index 7606e58b43..89148e9326 100644
--- a/enum.c
+++ b/enum.c
@@ -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.
*
*