Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Doc] Fix Array#count comparing strategy #4332

Merged
merged 1 commit into from Mar 28, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions array.c
Expand Up @@ -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
*
Expand All @@ -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
Expand Down