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

This commit is contained in:
Burdette Lamar 2024-10-02 08:15:25 -05:00 committed by GitHub
parent c1d6d55f5a
commit e41e4bacb1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
Notes: git 2024-10-02 13:15:43 +00:00
Merged-By: peterzhu2118 <peter@peterzhu.ca>

View File

@ -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