diff options
| author | Vexu <git@vexu.eu> | 2020-10-31 12:21:49 +0200 |
|---|---|---|
| committer | Vexu <git@vexu.eu> | 2020-10-31 12:21:49 +0200 |
| commit | 28a0583b844654bec108a456eb619efb2af201a1 (patch) | |
| tree | 0fbaff0af723dcf6a8d4c0188519ada762468b73 /src/codegen | |
| parent | 3ff381385aad13955360973d1604410335f2ddff (diff) | |
| download | zig-28a0583b844654bec108a456eb619efb2af201a1.tar.gz zig-28a0583b844654bec108a456eb619efb2af201a1.zip | |
run zig fmt on src/ and test/
Diffstat (limited to 'src/codegen')
| -rw-r--r-- | src/codegen/c.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codegen/c.zig b/src/codegen/c.zig index 2d98729721..e562ce320e 100644 --- a/src/codegen/c.zig +++ b/src/codegen/c.zig @@ -91,7 +91,7 @@ fn genArray(file: *C, decl: *Decl) !void { if (tv.val.cast(Value.Payload.Bytes)) |payload| if (tv.ty.sentinel()) |sentinel| if (sentinel.toUnsignedInt() == 0) - // TODO: static by default + // TODO: static by default try file.constants.writer().print("const char *const {} = \"{}\";\n", .{ name, payload.data }) else return file.fail(decl.src(), "TODO byte arrays with non-zero sentinels", .{}) |
