mirror of
https://github.com/ziglang/zig.git
synced 2024-11-26 23:22:44 +00:00
style: add missing comma
This is really minor but the issue this fixes is that if you copy-paste this output of `--show-builtin` into your `build.zig` for example then the formatter will format ``` pub const os = std.Target.Os{ .tag = .freestanding, .version_range = .{ .none = {} } }; ``` to ``` pub const os = std.Target.Os{ .tag = .freestanding, .version_range = .{ .none = {} } }; ``` which doesn't match the output. With this comma, the output will stay the way it is after a `zig fmt`.
This commit is contained in:
parent
e867127a6c
commit
8f943b3d33
@ -4812,7 +4812,7 @@ pub fn generateBuiltinZigSource(comp: *Compilation, allocator: Allocator) Alloca
|
|||||||
);
|
);
|
||||||
|
|
||||||
switch (target.os.getVersionRange()) {
|
switch (target.os.getVersionRange()) {
|
||||||
.none => try buffer.appendSlice(" .none = {} }\n"),
|
.none => try buffer.appendSlice(" .none = {} },\n"),
|
||||||
.semver => |semver| try buffer.writer().print(
|
.semver => |semver| try buffer.writer().print(
|
||||||
\\ .semver = .{{
|
\\ .semver = .{{
|
||||||
\\ .min = .{{
|
\\ .min = .{{
|
||||||
|
Loading…
Reference in New Issue
Block a user