summaryrefslogtreecommitdiff
path: root/enum.c
diff options
context:
space:
mode:
Diffstat (limited to 'enum.c')
-rw-r--r--enum.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/enum.c b/enum.c
index 9e999a8f51..ae25c554ab 100644
--- a/enum.c
+++ b/enum.c
@@ -130,11 +130,10 @@ count_all_i(VALUE i, VALUE memop, int argc, VALUE *argv)
* enum.count(item) -> int
* enum.count { |obj| block } -> int
*
- * Returns the number of items in <i>enum</i> if it responds to a #size call,
- * otherwise the items are counted through enumeration. If an argument is
- * given the number of items in <i>enum</i> that are equal to <i>item</i> are
- * counted. If a block is given, it counts the number of elements yielding a
- * true value.
+ * Returns the number of items in +enum+ through enumeration.
+ * If an argument is given, the number of items in +enum+ that
+ * are equal to +item+ are counted. If a block is given, it
+ * counts the number of elements yielding a true value.
*
* ary = [1, 2, 4, 2]
* ary.count #=> 4