ruby-changes:30421
From: charliesome <ko1@a...>
Date: Sun, 11 Aug 2013 05:56:19 +0900 (JST)
Subject: [ruby-changes:30421] charliesome:r42500 (trunk): * doc/syntax/literals.rdoc: Use single quotes instead of double quotes
charliesome 2013-08-11 05:56:13 +0900 (Sun, 11 Aug 2013) New Revision: 42500 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=42500 Log: * doc/syntax/literals.rdoc: Use single quotes instead of double quotes [Bug #8766] [ruby-core:56514] Modified files: trunk/doc/syntax/literals.rdoc Index: doc/syntax/literals.rdoc =================================================================== --- doc/syntax/literals.rdoc (revision 42499) +++ doc/syntax/literals.rdoc (revision 42500) @@ -191,7 +191,7 @@ symbols using interpolation. https://github.com/ruby/ruby/blob/trunk/doc/syntax/literals.rdoc#L191 Like strings, a single-quote may be used to disable interpolation: - :"my_symbol#{1 + 1}" #=> :"my_symbol\#{1 + 1}" + :'my_symbol#{1 + 1}' #=> :"my_symbol\#{1 + 1}" When creating a Hash there is a special syntax for referencing a Symbol as well. -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/