From a7f7479872cc70678b5f8374347c509945c04e82 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Wed, 5 May 2021 23:13:26 -0700 Subject: [PATCH] [ruby/erb] Document that `<% #` doesn't work [Bug #17846] https://github.com/ruby/erb/commit/b58b188028fbb403f75d48d62717373fc0908f7a --- lib/erb.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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