summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenichi Kamiya <kachick1@gmail.com>2021-03-29 01:02:21 +0900
committerMarc-André Lafortune <github@marc-andre.ca>2021-03-28 14:17:52 -0400
commit813c3333a9364222523a9fe863df569300ac1ad1 (patch)
treec562af9e050e2bb673a7110db6310f0629671c36
parent989e22f394c48aae301a0239cad14871dfa96d43 (diff)
[Doc] Fix Array#count comparing strategy
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4332
-rw-r--r--array.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/array.c b/array.c
index 0f7ccde..7c84bba 100644
--- a/array.c
+++ b/array.c
@@ -6093,7 +6093,7 @@ rb_ary_compact(VALUE ary)
* [0, 1, 2].count # => 3
* [].count # => 0
*
- * With argument +obj+, returns the count of elements <tt>eql?</tt> to +obj+:
+ * With argument +obj+, returns the count of elements <tt>==</tt> to +obj+:
* [0, 1, 2, 0].count(0) # => 2
* [0, 1, 2].count(3) # => 0
*
@@ -6102,7 +6102,7 @@ rb_ary_compact(VALUE ary)
* [0, 1, 2, 3].count {|element| element > 1} # => 2
*
* With argument +obj+ and a block given, issues a warning, ignores the block,
- * and returns the count of elements <tt>eql?</tt> to +obj+:
+ * and returns the count of elements <tt>==</tt> to +obj+:
*/
static VALUE