Skip to content

Commit 3dd16a4

Browse files
committed
Dedupe modifier-comment-possible line numbers of method defintion comment
1 parent b60676b commit 3dd16a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rdoc/parser/prism_ruby.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ def add_method(method_name, receiver_name:, receiver_fallback_type:, visibility:
521521
receiver,
522522
comment: comment,
523523
directives: directives,
524-
modifier_comment_lines: [start_line, args_end_line, end_line],
524+
modifier_comment_lines: [start_line, args_end_line, end_line].uniq,
525525
line_no: start_line,
526526
visibility: visibility,
527527
singleton: singleton,

0 commit comments

Comments
 (0)