summaryrefslogtreecommitdiff
path: root/doc/syntax
diff options
context:
space:
mode:
Diffstat (limited to 'doc/syntax')
-rw-r--r--doc/syntax/literals.rdoc2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/syntax/literals.rdoc b/doc/syntax/literals.rdoc
index bfe070b0ab..d521cafe31 100644
--- a/doc/syntax/literals.rdoc
+++ b/doc/syntax/literals.rdoc
@@ -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.