Skip to content

Commit d47c875

Browse files
committed
rustdoc::invalid_html_tags(unclosed comment): fix off by one in span
1 parent 31206f2 commit d47c875

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
@@ -464,7 +464,7 @@ impl TagParser {
464464
iter.next();
465465
*is_in_comment = Some(Range {
466466
start: range.start + start_pos,
467-
end: range.start + start_pos + 3,
467+
end: range.start + start_pos + 4,
468468
});
469469
} else {
470470
if self.tag_name.is_empty() {

0 commit comments

Comments
 (0)