Skip to content

Commit d022089

Browse files
committed
rustdoc::invalid_html_tags(unclosed comment): fix off by one in span
1 parent 15a8999 commit d022089

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/passes/lint/html_tags.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ impl TagParser {
520520
iter.next();
521521
*is_in_comment = Some(Range {
522522
start: range.start + start_pos,
523-
end: range.start + start_pos + 3,
523+
end: range.start + start_pos + 4,
524524
});
525525
} else {
526526
if self.tag_name.is_empty() {

0 commit comments

Comments
 (0)