[DOC] Tweaks for Array#inspect (#11935)

This commit is contained in:
Burdette Lamar 2024-10-22 14:20:58 -05:00 committed by GitHub
parent 00af6a3f04
commit da82b84b55
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
Notes: git 2024-10-22 19:21:17 +00:00
Merged-By: peterzhu2118 <peter@peterzhu.ca>

View File

@ -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 <tt>#inspect</tt>
* 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