mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* doc/syntax/literals.rdoc: Use single quotes instead of double quotes
[Bug #8766] [ruby-core:56514] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
579bc39f03
commit
a5c3ca07f8
1 changed files with 1 additions and 1 deletions
|
@ -191,7 +191,7 @@ symbols using interpolation.
|
|||
|
||||
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.
|
||||
|
|
Loading…
Add table
Reference in a new issue