summaryrefslogtreecommitdiff
path: root/array.c
diff options
context:
space:
mode:
Diffstat (limited to 'array.c')
-rw-r--r--array.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/array.c b/array.c
index 7c84bbaebf..be744e2983 100644
--- a/array.c
+++ b/array.c
@@ -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;