summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2021-05-05 23:13:26 -0700
committerTakashi Kokubun <takashikkbn@gmail.com>2021-05-05 23:13:27 -0700
commita7f7479872cc70678b5f8374347c509945c04e82 (patch)
treef8b216b2a8762edc000dae7c4d6886f15fbf0b47
parentf941dd5a9f80616fc1461625bead4774da8ab9ae (diff)
[ruby/erb] Document that `<% #` doesn't work
[Bug #17846] https://github.com/ruby/erb/commit/b58b188028fbb403f75d48d62717373fc0908f7a
-rw-r--r--lib/erb.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/erb.rb b/lib/erb.rb
index 17dc557929..3045106c92 100644
--- a/lib/erb.rb
+++ b/lib/erb.rb
@@ -46,7 +46,7 @@ require 'erb/version'
#
# <% Ruby code -- inline with output %>
# <%= Ruby expression -- replace with result %>
-# <%# comment -- ignored -- useful in testing %>
+# <%# comment -- ignored -- useful in testing %> (`<% #` doesn't work. Don't use Ruby comments.)
# % a line of Ruby code -- treated as <% line %> (optional -- see ERB.new)
# %% replaced with % if first thing on a line and % processing is used
# <%% or %%> -- replace with <% or %> respectively