Skip to content

Commit 50a5cd7

Browse files
authored
Fix tag shown in example of ERB expression tag and execution tag (#92)
These were the wrong way around.
1 parent 6bceee7 commit 50a5cd7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/erb.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
# \ERB supports tags of three kinds:
6161
#
6262
# - [Expression tags][expression tags]:
63-
# each begins with `'<%'`, ends with `'%>'`; contains a Ruby expression;
63+
# each begins with `'<%='`, ends with `'%>'`; contains a Ruby expression;
6464
# in the result, the value of the expression replaces the entire tag:
6565
#
6666
# template = 'The magic word is <%= magic_word %>.'
@@ -77,7 +77,7 @@
7777
# ERB.new('Today is <%= Date::DAYNAMES[Date.today.wday] %>.').result # => "Today is Monday."
7878
#
7979
# - [Execution tags][execution tags]:
80-
# each begins with `'<%='`, ends with `'%>'`; contains Ruby code to be executed:
80+
# each begins with `'<%'`, ends with `'%>'`; contains Ruby code to be executed:
8181
#
8282
# template = '<% File.write("t.txt", "Some stuff.") %>'
8383
# ERB.new(template).result

0 commit comments

Comments
 (0)