diff --git a/lib/jsduck/tag/member_tag.rb b/lib/jsduck/tag/member_tag.rb index e420c867dfa4c3aba2886c9f524533612f86c15d..0626ae8ff35bdc8e4fa91c271d0fd5b0b3450e5b 100644 --- a/lib/jsduck/tag/member_tag.rb +++ b/lib/jsduck/tag/member_tag.rb @@ -120,7 +120,7 @@ module JsDuck::Tag # A helper method for use in #to_html. def member_params(params) ps = Array(params).map do |p| - p[:optional] ? "["+p[:name]+"]" : p[:name] + p[:optional] ? "[#{p[:name]}]" : p[:name] end.join(", ") "( #{ps} )"