diff options
Diffstat (limited to 'lib/rdoc')
-rw-r--r-- | lib/rdoc/parsers/parse_c.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rdoc/parsers/parse_c.rb b/lib/rdoc/parsers/parse_c.rb index d28ec941e8..086a63f4de 100644 --- a/lib/rdoc/parsers/parse_c.rb +++ b/lib/rdoc/parsers/parse_c.rb @@ -360,8 +360,8 @@ module RDoc def find_override_comment(meth_name) comment = nil - puts "Override #{meth_name}" - if @body =~ %r{Document-method:\s#{meth_name}.*?\n((?>.*?\*/))}m + name = Regexp.escape(meth_name) + if @body =~ %r{Document-method:\s#{name}.*?\n((?>.*?\*/))}m comment = $1 end comment |