aboutsummaryrefslogtreecommitdiff
path: root/src/codegen
diff options
context:
space:
mode:
authorVexu <git@vexu.eu>2020-10-31 12:21:49 +0200
committerVexu <git@vexu.eu>2020-10-31 12:21:49 +0200
commit28a0583b844654bec108a456eb619efb2af201a1 (patch)
tree0fbaff0af723dcf6a8d4c0188519ada762468b73 /src/codegen
parent3ff381385aad13955360973d1604410335f2ddff (diff)
downloadzig-28a0583b844654bec108a456eb619efb2af201a1.tar.gz
zig-28a0583b844654bec108a456eb619efb2af201a1.zip
run zig fmt on src/ and test/
Diffstat (limited to 'src/codegen')
-rw-r--r--src/codegen/c.zig2
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", .{})