mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[DOC] stated that Array#to_s calls #inspect [ci skip]
[ruby-list:50826]
This commit is contained in:
parent
289cad501d
commit
e2d97cffe5
1 changed files with 2 additions and 1 deletions
3
array.c
3
array.c
|
@ -2442,7 +2442,8 @@ inspect_ary(VALUE ary, VALUE dummy, int recur)
|
|||
* ary.inspect -> string
|
||||
* ary.to_s -> string
|
||||
*
|
||||
* Creates a string representation of +self+.
|
||||
* Creates a string representation of +self+, by calling #inspect
|
||||
* method on each elements.
|
||||
*
|
||||
* [ "a", "b", "c" ].to_s #=> "[\"a\", \"b\", \"c\"]"
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue