summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-03-25 18:19:17 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-03-25 18:19:17 +0000
commitcc938265eb0905093ea4b5ce2e318160086bbfee (patch)
tree37dd60ca45275ffc6ae9249d739dea8a086f7388
parentf84d286415328e4dfd64968d146d916ce60791aa (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_2@58118 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--string.c1
-rw-r--r--version.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/string.c b/string.c
index ade2be20b9..651892ecc1 100644
--- a/string.c
+++ b/string.c
@@ -8779,6 +8779,7 @@ sym_inspect(VALUE sym)
* Returns the name or string corresponding to <i>sym</i>.
*
* :fred.id2name #=> "fred"
+ * :ginger.to_s #=> "ginger"
*/
diff --git a/version.h b/version.h
index 5612f4cc74..a26eb39922 100644
--- a/version.h
+++ b/version.h
@@ -1,6 +1,6 @@
#define RUBY_VERSION "2.2.7"
#define RUBY_RELEASE_DATE "2017-03-26"
-#define RUBY_PATCHLEVEL 450
+#define RUBY_PATCHLEVEL 451
#define RUBY_RELEASE_YEAR 2017
#define RUBY_RELEASE_MONTH 3