Skip to content

Commit

Permalink
julefmt: minor improvement for ranged comment alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
mertcandav committed Dec 17, 2024
1 parent 8c3ce06 commit 41262d1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/format.jule
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,8 @@ impl formatter {
| '\n':
cmt := c.txt[:i+1]
i = bytes::FindLastByte(self.ubuf(), '\n')
n := utf8::RuneCount(unsafe { self.buf.Buf() }) - i - 1
self.write(cmt)
self.write(strings::Repeat(" ", n))
self.buf.Write(self.indent)!
self.write("*/")
ret
|:
Expand Down

0 comments on commit 41262d1

Please sign in to comment.