aboutsummaryrefslogtreecommitdiff
path: root/exercises/068_comptime3.zig
diff options
context:
space:
mode:
authorJonathan Halmen <jonathan@halmen.org>2021-11-05 17:37:12 +0100
committerJonathan Halmen <jonathan@halmen.org>2021-11-05 17:47:12 +0100
commitf6de68a1f23722457a0432ce520da668a50b2132 (patch)
treeb89a125af4973d0a7b40121298c8f4fd8e8c9988 /exercises/068_comptime3.zig
parent88886a37d9721763326ff80a7b2c127e4a8cb8ae (diff)
downloadziglings-f6de68a1f23722457a0432ce520da668a50b2132.tar.gz
ziglings-f6de68a1f23722457a0432ce520da668a50b2132.tar.bz2
ziglings-f6de68a1f23722457a0432ce520da668a50b2132.tar.xz
ziglings-f6de68a1f23722457a0432ce520da668a50b2132.zip
zig fmt
Diffstat (limited to 'exercises/068_comptime3.zig')
-rw-r--r--exercises/068_comptime3.zig8
1 files changed, 4 insertions, 4 deletions
diff --git a/exercises/068_comptime3.zig b/exercises/068_comptime3.zig
index ebe6c8f..848d7d2 100644
--- a/exercises/068_comptime3.zig
+++ b/exercises/068_comptime3.zig
@@ -61,10 +61,10 @@ const Schooner = struct {
}
};
-pub fn main() void {
- var whale = Schooner {.name = "Whale"};
- var shark = Schooner {.name = "Shark"};
- var minnow = Schooner {.name = "Minnow"};
+pub fn main() void {
+ var whale = Schooner{ .name = "Whale" };
+ var shark = Schooner{ .name = "Shark" };
+ var minnow = Schooner{ .name = "Minnow" };
// Hey, we can't just pass this runtime variable as an
// argument to the scaleMe() method. What would let us do