Skip to content

Commit e02f64d

Browse files
authored
Update BuildInterface.zig
1 parent c0cbba5 commit e02f64d

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/BuildInterface.zig

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -132,19 +132,19 @@ const ContentWriter = struct {
132132
for (data.partitions) |mpart| {
133133
if (mpart) |part| {
134134
try cw.code.writeAll(" part\n");
135+
try cw.code.print(" type {s}\n", .{@tagName(part.type)});
135136
if (part.bootable) {
136-
try cw.code.print(" type {s}\n", .{@tagName(part.type)});
137137
try cw.code.writeAll(" bootable\n");
138-
if (part.offset) |offset| {
139-
try cw.code.print(" offset {d}\n", .{offset});
140-
}
141-
if (part.size) |size| {
142-
try cw.code.print(" size {d}\n", .{size});
143-
}
144-
try cw.code.writeAll(" contains");
145-
try cw.render(part.data);
146-
try cw.code.writeAll("\n");
147138
}
139+
if (part.offset) |offset| {
140+
try cw.code.print(" offset {d}\n", .{offset});
141+
}
142+
if (part.size) |size| {
143+
try cw.code.print(" size {d}\n", .{size});
144+
}
145+
try cw.code.writeAll(" contains");
146+
try cw.render(part.data);
147+
try cw.code.writeAll("\n");
148148
try cw.code.writeAll(" endpart\n");
149149
} else {
150150
try cw.code.writeAll(" ignore\n");

0 commit comments

Comments
 (0)