diff --git a/ChangeLog b/ChangeLog index a813112114..e5b9a2669d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Fri Mar 14 12:07:46 2014 Zachary Scott + + * doc/syntax/literals.rdoc: [DOC] Single quote strings allows escape + of backslash as well, patch by @idupree [Fixes GH-553] + https://github.com/ruby/ruby/pull/553 + Fri Mar 14 01:18:24 2014 Nobuyoshi Nakada * vm.c (invoke_block_from_c): add splattable argument. 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 (\'). +escape sequences except for the single-quote (\') and backslash +(\\\\). You may also create strings using %: