path: root/doc
diff options
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-29 05:27:36 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-29 05:27:36 +0000
commit25dddf158ca61d3a1de748d8d8035fe79a759d62 (patch)
tree4d538352186811ce7cf57bef3633745f920e22d0 /doc
parent401c8bb00be23a6485a068add70e01419673a91e (diff)
literals.rdoc: Update for symbol literals
* doc/syntax/literals.rdoc (Symbols): now Symbols created by interpolation can be garbage collected. patch by Yihang Ho in [ruby-core:67194]. [Bug #10671] [ci skip] git-svn-id: svn+ssh:// b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'doc')
1 files changed, 0 insertions, 3 deletions
diff --git a/doc/syntax/literals.rdoc b/doc/syntax/literals.rdoc
index 32e10ed..194945a 100644
--- a/doc/syntax/literals.rdoc
+++ b/doc/syntax/literals.rdoc
@@ -199,9 +199,6 @@ You may also create symbols by interpolation:
:"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}"