diff --git a/array.c b/array.c
index 0f7ccdeb90..7c84bbaebf 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 eql? to +obj+:
+ * With argument +obj+, returns the count of elements == 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 eql? to +obj+:
+ * and returns the count of elements == to +obj+:
*/
static VALUE