Skip to content

Commit 9e3337b

Browse files
committed
Improvements: Improving the BytePos offset.
1 parent 2f3ee76 commit 9e3337b

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)