mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* doc/syntax/literals.rdoc: [DOC] Single quote strings allows escape
of backslash as well, patch by @idupree [Fixes GH-553] [ci skip] https://github.com/ruby/ruby/pull/553 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45332 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4a91fb7a45
commit
cac997eb95
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
Fri Mar 14 12:07:46 2014 Zachary Scott <e@zzak.io>
|
||||
|
||||
* 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 <nobu@ruby-lang.org>
|
||||
|
||||
* vm.c (invoke_block_from_c): add splattable argument.
|
||||
|
|
|
@ -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>:
|
||||
|
||||
|
|
Loading…
Reference in a new issue