Skip to content

Commit cac997e

Browse files
author
zzak
committed
* doc/syntax/literals.rdoc: [DOC] Single quote strings allows escape
of backslash as well, patch by @idupree [Fixes rubyGH-553] [ci skip] ruby#553 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45332 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent 4a91fb7 commit cac997e

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

ChangeLog

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
Fri Mar 14 12:07:46 2014 Zachary Scott <[email protected]>
2+
3+
* doc/syntax/literals.rdoc: [DOC] Single quote strings allows escape
4+
of backslash as well, patch by @idupree [Fixes GH-553]
5+
https://github.com/ruby/ruby/pull/553
6+
17
Fri Mar 14 01:18:24 2014 Nobuyoshi Nakada <[email protected]>
28

39
* vm.c (invoke_block_from_c): add splattable argument.

doc/syntax/literals.rdoc

+2-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ single-quote strings:
100100
'#{1 + 1}' #=> "\#{1 + 1}"
101101

102102
In addition to disabling interpolation, single-quoted strings also disable all
103-
escape sequences except for the single-quote (<tt>\'</tt>).
103+
escape sequences except for the single-quote (<tt>\'</tt>) and backslash
104+
(<tt>\\\\</tt>).
104105

105106
You may also create strings using <tt>%</tt>:
106107

0 commit comments

Comments
 (0)