[DOC] Related for Array#count
authorBurdetteLamar <[email protected]>
Mon, 9 Sep 2024 14:26:58 +0000 (9 09:26 -0500)
committerPeter Zhu <[email protected]>
Tue, 10 Sep 2024 19:37:17 +0000 (10 15:37 -0400)
array.c

diff --git a/array.c b/array.c
index f5fa6ee..0b79f6a 100644 (file)
--- 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