mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
[DOC] Fix an error example
`%q{c}` after another string literal is parsed as RHS of modulo, `q` method call with a block.
This commit is contained in:
parent
be4567e194
commit
e9593eb967
1 changed files with 1 additions and 1 deletions
|
@ -204,7 +204,7 @@ Any combination of adjacent single-quote, double-quote, percent strings will
|
|||
be concatenated as long as a percent-string is not last.
|
||||
|
||||
%q{a} 'b' "c" #=> "abc"
|
||||
"a" 'b' %q{c} #=> NameError: uninitialized constant q
|
||||
"a" 'b' %q{c} #=> NoMethodError: undefined method 'q' for main
|
||||
|
||||
=== Character Literal
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue