diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-31 10:58:21 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-31 10:58:21 +0000 |
commit | 305b200d107efff89eff285205067ce6854b8b99 (patch) | |
tree | 5919877825e230c547a25e21f706cffd8acc0c15 /string.c | |
parent | 735496826bdd89a5950195a30cf18c482359554a (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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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" */ |