This commit is contained in:
Tanaka Akira 2024-06-03 14:37:32 +09:00
Родитель ac62adadc0
Коммит 61af722d4e
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -471,8 +471,8 @@ The created string is the same as if you created it with single quotes:
%q(1 + 1 is #{1 + 1}) # => "1 + 1 is \#{1 + 1}" # No interpolation.
%q[foo[bar]baz] # => "foo[bar]baz" # brackets can be nested.
%q(foo(bar)baz) # => "foo(bar)baz" # parenthesis can be nested.
%q{foo{bar}baz} # => "foo[bar]baz" # braces can be nested.
%q<foo<bar>baz> # => "foo[bar]baz" # angle brackets can be nested.
%q{foo{bar}baz} # => "foo{bar}baz" # braces can be nested.
%q<foo<bar>baz> # => "foo<bar>baz" # angle brackets can be nested.
=== <tt>% and %Q</tt>: Interpolable String Literals