From 305b200d107efff89eff285205067ce6854b8b99 Mon Sep 17 00:00:00 2001 From: usa Date: Wed, 31 Jan 2018 10:58:21 +0000 Subject: merge revision(s) 57536: [Backport #13192] doc: Add example for Symbol#to_s * string.c: add example for Symbol#to_s. The docs for Symbol#to_s only include an example for Symbol#id2name, but not for #to_s which is an alias; the docs should include examples for both methods. From: Marcus Stollsteimer git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@62125 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- string.c | 1 + 1 file changed, 1 insertion(+) (limited to 'string.c') diff --git a/string.c b/string.c index d54ff0ade7..29b1183b4f 100644 --- a/string.c +++ b/string.c @@ -9188,6 +9188,7 @@ sym_inspect(VALUE sym) * Returns the name or string corresponding to sym. * * :fred.id2name #=> "fred" + * :ginger.to_s #=> "ginger" */ -- cgit v1.2.3