diff options
| author | r00ster91 <r00ster91@proton.me> | 2022-07-15 14:21:10 +0200 |
|---|---|---|
| committer | Joachim Schmidt <joachim.schmidt557@outlook.com> | 2022-07-16 09:03:04 +0000 |
| commit | 8f943b3d33432a26b7e242c1181e4220ed400501 (patch) | |
| tree | 712dffc9ca883babf3816a9856af24968b4265b1 /src/Compilation.zig | |
| parent | e867127a6cc3e0148101f08d846c876f62e839c1 (diff) | |
| download | zig-8f943b3d33432a26b7e242c1181e4220ed400501.tar.gz zig-8f943b3d33432a26b7e242c1181e4220ed400501.zip | |
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`.
Diffstat (limited to 'src/Compilation.zig')
| -rw-r--r-- | src/Compilation.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig index b3ae4e787d..6964ae6bea 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -4812,7 +4812,7 @@ pub fn generateBuiltinZigSource(comp: *Compilation, allocator: Allocator) Alloca ); switch (target.os.getVersionRange()) { - .none => try buffer.appendSlice(" .none = {} }\n"), + .none => try buffer.appendSlice(" .none = {} },\n"), .semver => |semver| try buffer.writer().print( \\ .semver = .{{ \\ .min = .{{ |
