diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-03-29 11:35:38 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-03-29 11:35:38 +0900 |
commit | f46bbb2e99b8c1df6a62756967b40de36039916b (patch) | |
tree | 5da58d9afb5adabba131216b2f6a15fddd8c8091 /array.c | |
parent | 875c85a8bdca6cc2c7d0a26291ec4a6b2647b195 (diff) | |
download | ruby-f46bbb2e99b8c1df6a62756967b40de36039916b.tar.gz |
[DOC] Improve an example of Array#count comparison [ci skip]
Diffstat (limited to 'array.c')
-rw-r--r-- | array.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -6094,7 +6094,7 @@ rb_ary_compact(VALUE ary) * [].count # => 0 * * With argument +obj+, returns the count of elements <tt>==</tt> to +obj+: - * [0, 1, 2, 0].count(0) # => 2 + * [0, 1, 2, 0.0].count(0) # => 2 * [0, 1, 2].count(3) # => 0 * * With no argument and a block given, calls the block with each element; |