Skip to content

Commit 0de5e81

Browse files
committed
fix extra semicolons
1 parent daaf646 commit 0de5e81

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/std/Build/Step/Options.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ fn printStructDefinition(options: *Options, out: Writer, comptime T: type) !void
126126
try out.writeAll(")");
127127
},
128128
}
129-
if (@"struct".fields.len == 0) return out.writeAll(" {};\n\n");
129+
if (@"struct".fields.len == 0) return out.writeAll(" {}");
130130
try out.writeAll(" {\n");
131131
132132
inline for (@"struct".fields) |field| {
@@ -158,7 +158,7 @@ fn printUnionDefinition(options: *Options, out: Writer, comptime T: type) !void
158158
try out.writeAll("union(");
159159
try printTypeName(options, out, tag_type, indent_width);
160160
try out.writeAll(")");
161-
if (@"union".fields.len == 0) return out.writeAll(" {};\n\n");
161+
if (@"union".fields.len == 0) return out.writeAll(" {}");
162162
try out.writeAll(" {\n");
163163
164164
inline for (@"union".fields) |field| {

0 commit comments

Comments
 (0)