From da82b84b55ac8805230ecc173ca8f6f6b23c6638 Mon Sep 17 00:00:00 2001 From: Burdette Lamar Date: Tue, 22 Oct 2024 14:20:58 -0500 Subject: [PATCH] [DOC] Tweaks for Array#inspect (#11935) --- array.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/array.c b/array.c index d5286803c6..1f24480f4d 100644 --- a/array.c +++ b/array.c @@ -2958,6 +2958,7 @@ inspect_ary(VALUE ary, VALUE dummy, int recur) /* * call-seq: * inspect -> new_string + * to_s -> new_string * * Returns the new string formed by calling method #inspect * on each array element: @@ -2965,7 +2966,7 @@ inspect_ary(VALUE ary, VALUE dummy, int recur) * a = [:foo, 'bar', 2] * a.inspect # => "[:foo, \"bar\", 2]" * - * Related: see {Methods for Querying}[rdoc-ref:Array@Methods+for+Querying]. + * Related: see {Methods for Converting}[rdoc-ref:Array@Methods+for+Converting]. */ static VALUE