summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-31 10:58:21 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-31 10:58:21 +0000
commit305b200d107efff89eff285205067ce6854b8b99 (patch)
tree5919877825e230c547a25e21f706cffd8acc0c15 /string.c
parent735496826bdd89a5950195a30cf18c482359554a (diff)
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 <sto.mar@web.de> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@62125 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r--string.c1
1 files changed, 1 insertions, 0 deletions
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 <i>sym</i>.
*
* :fred.id2name #=> "fred"
+ * :ginger.to_s #=> "ginger"
*/