From e9593eb96715628edb0e5b2b5accdffd1d85187d Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Tue, 7 Jan 2025 09:56:54 +0900 Subject: [PATCH] [DOC] Fix an error example `%q{c}` after another string literal is parsed as RHS of modulo, `q` method call with a block. --- doc/syntax/literals.rdoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/syntax/literals.rdoc b/doc/syntax/literals.rdoc index 026266dff7..46bb7673f3 100644 --- a/doc/syntax/literals.rdoc +++ b/doc/syntax/literals.rdoc @@ -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