diff options
author | Dave Gauer <ratfactor@gmail.com> | 2021-11-07 19:38:47 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-07 19:38:47 -0500 |
commit | dedd787f2dd0badc03caa1299adaf57eaeaae156 (patch) | |
tree | b89a125af4973d0a7b40121298c8f4fd8e8c9988 /exercises/067_comptime2.zig | |
parent | 4147a9a39b362468cc6f16c8ce751ee3481321f4 (diff) | |
parent | f6de68a1f23722457a0432ce520da668a50b2132 (diff) | |
download | ziglings-dedd787f2dd0badc03caa1299adaf57eaeaae156.tar.gz ziglings-dedd787f2dd0badc03caa1299adaf57eaeaae156.tar.bz2 ziglings-dedd787f2dd0badc03caa1299adaf57eaeaae156.tar.xz ziglings-dedd787f2dd0badc03caa1299adaf57eaeaae156.zip |
Merge pull request #77 from jhalmen/fmt
whitespaces and zig fmt
Diffstat (limited to 'exercises/067_comptime2.zig')
-rw-r--r-- | exercises/067_comptime2.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/exercises/067_comptime2.zig b/exercises/067_comptime2.zig index 2d50099..7d4bdb0 100644 --- a/exercises/067_comptime2.zig +++ b/exercises/067_comptime2.zig @@ -8,7 +8,7 @@ // --o-- comptime * | .. . // * | * . . . . --*-- . * . // . . . . . . . . . | . . . -// +// // When placed before a variable declaration, 'comptime' // guarantees that every usage of that variable will be performed // at compile time. @@ -30,7 +30,7 @@ // const print = @import("std").debug.print; -pub fn main() void { +pub fn main() void { // // In this contrived example, we've decided to allocate some // arrays using a variable count! But something's missing... @@ -49,7 +49,7 @@ pub fn main() void { count += 1; var a4: [count]u8 = .{'D'} ** count; - print("{s} {s} {s} {s}\n", .{a1, a2, a3, a4}); + print("{s} {s} {s} {s}\n", .{ a1, a2, a3, a4 }); // Builtin BONUS! // |