summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBurdetteLamar <[email protected]>2024-09-09 09:26:58 -0500
committerPeter Zhu <[email protected]>2024-09-10 15:37:17 -0400
commita055a426ed146c55f4916f0c2d198bb9de109725 (patch)
tree58436de800a276db9c78bea0fb63b687001c23b4
parentff43e618e99851592b6b595d640941588911ed4f (diff)
[DOC] Related for Array#count
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/11575
-rw-r--r--array.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/array.c b/array.c
index f5fa6ee9a5..0b79f6aede 100644
--- a/array.c
+++ b/array.c
@@ -6386,10 +6386,12 @@ rb_ary_compact(VALUE ary)
* With no argument and a block given, calls the block with each element;
* returns the count of elements for which the block returns a truthy value:
*
- * [0, 1, 2, 3].count {|element| element > 1} # => 2
+ * [0, 1, 2, 3].count {|element| element > 1 } # => 2
*
* With argument +object+ and a block given, issues a warning, ignores the block,
* and returns the count of elements <tt>==</tt> to +object+.
+ *
+ * Related: see {Methods for Querying}[rdoc-ref:Array@Methods+for+Querying].
*/
static VALUE