From b13574d3c7765c72f12056b7c5adaeda42f70b54 Mon Sep 17 00:00:00 2001 From: normal Date: Sun, 5 Feb 2017 00:22:03 +0000 Subject: 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/trunk@57536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- string.c | 1 + 1 file changed, 1 insertion(+) diff --git a/string.c b/string.c index 394fa8d332..d894b24daf 100644 --- a/string.c +++ b/string.c @@ -9707,6 +9707,7 @@ sym_inspect(VALUE sym) * Returns the name or string corresponding to sym. * * :fred.id2name #=> "fred" + * :ginger.to_s #=> "ginger" */ -- cgit v1.2.3