Skip to content

Commit 83b82a6

Browse files
jmj0502ytmimi
authored andcommitted
Improvements: Improving the BytePos offset.
1 parent 2e205b9 commit 83b82a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/items.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1085,7 +1085,7 @@ pub(crate) fn format_trait(
10851085
if let Some(lo) = item_snippet.find('/') {
10861086
// 1 = `{`
10871087
let comment_hi = if generics.params.len() > 0 {
1088-
generics.span.lo() - BytePos(5)
1088+
generics.span.lo() - BytePos(1)
10891089
} else {
10901090
body_lo - BytePos(1)
10911091
};

0 commit comments

Comments
 (0)