Skip to content

Commit

Permalink
julefmt: fix varidic parameter formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mertcandav committed Mar 29, 2024
1 parent d1a9959 commit caa7169
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/format.jule
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,9 @@ impl Formatter {
self.write("_: ")
}
self.pop_row_comments_by_c(p.kind.token.row, p.kind.token.column)
if p.variadic {
self.write("...")
}
self.format_type(p.kind)
}
if i + 1 < params.len {
Expand Down

0 comments on commit caa7169

Please sign in to comment.