aboutsummaryrefslogtreecommitdiff
path: root/exercises/066_comptime.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/066_comptime.zig
parent88886a37d9721763326ff80a7b2c127e4a8cb8ae (diff)
downloadziglings-f6de68a1f23722457a0432ce520da668a50b2132.tar.gz
ziglings-f6de68a1f23722457a0432ce520da668a50b2132.tar.bz2
ziglings-f6de68a1f23722457a0432ce520da668a50b2132.tar.xz
ziglings-f6de68a1f23722457a0432ce520da668a50b2132.zip
zig fmt
Diffstat (limited to 'exercises/066_comptime.zig')
-rw-r--r--exercises/066_comptime.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/exercises/066_comptime.zig b/exercises/066_comptime.zig
index 40c7fdb..bcd0bc5 100644
--- a/exercises/066_comptime.zig
+++ b/exercises/066_comptime.zig
@@ -30,7 +30,7 @@
//
const print = @import("std").debug.print;
-pub fn main() void {
+pub fn main() void {
// ALL numeric literals in Zig are of type comptime_int or
// comptime_float. They are of arbitrary size (as big or
// little as you need).
@@ -46,7 +46,7 @@ pub fn main() void {
const const_int = 12345;
const const_float = 987.654;
- print("Immutable: {}, {d:.3}; ", .{const_int, const_float});
+ print("Immutable: {}, {d:.3}; ", .{ const_int, const_float });
// But something changes when we assign the exact same values
// to identifiers mutably with "var".
@@ -69,7 +69,7 @@ pub fn main() void {
var_int = 54321;
var_float = 456.789;
- print("Mutable: {}, {d:.3}; ", .{var_int, var_float});
+ print("Mutable: {}, {d:.3}; ", .{ var_int, var_float });
// Bonus: Now that we're familiar with Zig's builtins, we can
// also inspect the types to see what they are, no guessing