From 25dddf158ca61d3a1de748d8d8035fe79a759d62 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 29 Dec 2014 05:27:36 +0000 Subject: [PATCH] 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://ci.ruby-lang.org/ruby/trunk@49056 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 6 ++++++ doc/syntax/literals.rdoc | 3 --- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index d62ccbf77d..5a8fc5397b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Mon Dec 29 14:27:33 2014 Nobuyoshi Nakada + + * doc/syntax/literals.rdoc (Symbols): now Symbols created by + interpolation can be garbage collected. patch by Yihang Ho in + [ruby-core:67194]. [Bug #10671] + Mon Dec 29 11:18:17 2014 Nobuyoshi Nakada * thread.c (rb_thread_variable_get): fix dynamic symbol keys. 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}"