Skip to content

Commit

Permalink
[DOC] stated that Array#to_s calls #inspect [ci skip]
Browse files Browse the repository at this point in the history
[ruby-list:50826]
  • Loading branch information
nobu committed Sep 29, 2019
1 parent 289cad5 commit e2d97cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion array.c
Expand Up @@ -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\"]"
*/
Expand Down

0 comments on commit e2d97cf

Please sign in to comment.