[DOC] Tweaks for Array#inspect (#11935)
This commit is contained in:
parent
00af6a3f04
commit
da82b84b55
Notes:
git
2024-10-22 19:21:17 +00:00
Merged-By: peterzhu2118 <peter@peterzhu.ca>
3
array.c
3
array.c
@ -2958,6 +2958,7 @@ inspect_ary(VALUE ary, VALUE dummy, int recur)
|
|||||||
/*
|
/*
|
||||||
* call-seq:
|
* call-seq:
|
||||||
* inspect -> new_string
|
* inspect -> new_string
|
||||||
|
* to_s -> 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:
|
* on each array element:
|
||||||
@ -2965,7 +2966,7 @@ inspect_ary(VALUE ary, VALUE dummy, int recur)
|
|||||||
* a = [:foo, 'bar', 2]
|
* a = [:foo, 'bar', 2]
|
||||||
* a.inspect # => "[: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
|
static VALUE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user