aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/exercises/067_comptime2.zig
diff options
context:
space:
mode:
authorDave Gauer <dave@ratfactor.com>2021-11-07 20:52:39 -0500
committerDave Gauer <dave@ratfactor.com>2021-11-07 20:52:39 -0500
commit40656031c568b346b7eb47118be7c0dc04cc89b6 (patch)
tree5866b7f3a15945a73b946443fbd490fc8f4cc2d8 /exercises/067_comptime2.zig
parent7d29fd8ce4e2a2acd4863166b752b68d29994645 (diff)
parentc7868de51194b32a16ea6632bb737778ddb983bb (diff)
Merge branch 'main' of github.com:ratfactor/ziglings into main
Diffstat (limited to 'exercises/067_comptime2.zig')
-rw-r--r--exercises/067_comptime2.zig6
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!
//