summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-01-22 02:47:44 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-01-22 02:47:44 +0000
commitb5e22aa1d69e5d1b5f84c929977635f835d80271 (patch)
treeb5e71fcd3030f19b4717565d005dfdb2bb28ff7b /doc
parent0ee6afe2c1042baab8e3f28d1b190b486d848e5d (diff)
merge revision(s) 49056: [Backport #10671]
* doc/syntax/literals.rdoc (Symbols): now Symbols created by interpolation can be garbage collected. patch by Yihang Ho in [ruby-core:67194]. [Bug #10671] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@49375 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'doc')
-rw-r--r--doc/syntax/literals.rdoc3
1 files changed, 0 insertions, 3 deletions
diff --git a/doc/syntax/literals.rdoc b/doc/syntax/literals.rdoc
index 32e10edd30..194945abbd 100644
--- a/doc/syntax/literals.rdoc
+++ b/doc/syntax/literals.rdoc
@@ -199,9 +199,6 @@ You may also create symbols by interpolation:
:"my_symbol1"
:"my_symbol#{1 + 1}"
-Note that symbols are never garbage collected so be careful when referencing
-symbols using interpolation.
-
Like strings, a single-quote may be used to disable interpolation:
:'my_symbol#{1 + 1}' #=> :"my_symbol\#{1 + 1}"