summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-02-05 00:22:03 +0000
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-02-05 00:22:03 +0000
commita6b9b360ce6874d6545ec26e5b860cb5c0118f00 (patch)
tree12b70124c273bd67da5e532f7af20b5d9c841c69
parent559b51ff9c23c167ac2c8577646fa996967aec63 (diff)
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/trunk@57536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--string.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/string.c b/string.c
index 394fa8d..d894b24 100644
--- a/string.c
+++ b/string.c
@@ -9707,6 +9707,7 @@ sym_inspect(VALUE sym)
* Returns the name or string corresponding to <i>sym</i>.
*
* :fred.id2name #=> "fred"
+ * :ginger.to_s #=> "ginger"
*/