Skip to content

Commit

Permalink
julefmt: fix structure declaration comment formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mertcandav committed Mar 31, 2024
1 parent 1b07f0f commit d07228b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/format.jule
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,8 @@ impl Formatter {
fn struct_decl(&self, mut d: &ast::StructDecl) {
if d.directives.len != 0 {
self.directives(d.directives)
} else {
self.write_comments(d.token.row)
}
if d.public {
self.write("pub ")
Expand Down

0 comments on commit d07228b

Please sign in to comment.