[DOC] Tweaks for Array#inspect (#11743)
authorBurdette Lamar <[email protected]>
Wed, 2 Oct 2024 13:15:25 +0000 (2 08:15 -0500)
committerGitHub <[email protected]>
Wed, 2 Oct 2024 13:15:25 +0000 (2 09:15 -0400)
array.c

diff --git a/array.c b/array.c
index 6d57628..cb6d06c 100644 (file)
--- a/array.c
+++ b/array.c
@@ -2970,14 +2970,15 @@ inspect_ary(VALUE ary, VALUE dummy, int recur)
 
 /*
  *  call-seq:
- *    array.inspect -> new_string
+ *    inspect -> new_string
  *
- *  Returns the new String formed by calling method <tt>#inspect</tt>
+ *  Returns the new string formed by calling method <tt>#inspect</tt>
  *  on each array element:
  *
  *    a = [:foo, 'bar', 2]
  *    a.inspect # => "[:foo, \"bar\", 2]"
  *
+ *  Related: see {Methods for Querying}[rdoc-ref:Array@Methods+for+Querying].
  */
 
 static VALUE