summaryrefslogtreecommitdiff
path: root/doc/syntax
diff options
context:
space:
mode:
authorTanaka Akira <[email protected]>2024-06-03 14:37:32 +0900
committerTanaka Akira <[email protected]>2024-06-03 14:37:32 +0900
commit61af722d4e2899784a58d06f2be0d67cab9d0efa (patch)
treea762423a80068ba1bf1eea51fa0c35f24e8e11b1 /doc/syntax
parentac62adadc0413d86171d78339eaca2b91e81166f (diff)
fix typos.
Diffstat (limited to 'doc/syntax')
-rw-r--r--doc/syntax/literals.rdoc4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/syntax/literals.rdoc b/doc/syntax/literals.rdoc
index 01df0c09b8..0d581a5787 100644
--- a/doc/syntax/literals.rdoc
+++ b/doc/syntax/literals.rdoc
@@ -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