[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
@ -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…
x
Reference in New Issue
Block a user