diff options
Diffstat (limited to 'doc/syntax')
-rw-r--r-- | doc/syntax/literals.rdoc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/syntax/literals.rdoc b/doc/syntax/literals.rdoc index e01b6875d4..32e10edd30 100644 --- a/doc/syntax/literals.rdoc +++ b/doc/syntax/literals.rdoc @@ -100,7 +100,8 @@ single-quote strings: '#{1 + 1}' #=> "\#{1 + 1}" In addition to disabling interpolation, single-quoted strings also disable all -escape sequences except for the single-quote (<tt>\'</tt>). +escape sequences except for the single-quote (<tt>\'</tt>) and backslash +(<tt>\\\\</tt>). You may also create strings using <tt>%</tt>: |