aboutsummaryrefslogtreecommitdiff
path: root/exercises/075_quiz8.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/075_quiz8.zig
parent88886a37d9721763326ff80a7b2c127e4a8cb8ae (diff)
downloadziglings-f6de68a1f23722457a0432ce520da668a50b2132.tar.gz
ziglings-f6de68a1f23722457a0432ce520da668a50b2132.tar.bz2
ziglings-f6de68a1f23722457a0432ce520da668a50b2132.tar.xz
ziglings-f6de68a1f23722457a0432ce520da668a50b2132.zip
zig fmt
Diffstat (limited to 'exercises/075_quiz8.zig')
-rw-r--r--exercises/075_quiz8.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/exercises/075_quiz8.zig b/exercises/075_quiz8.zig
index 61c8f6f..1e026a4 100644
--- a/exercises/075_quiz8.zig
+++ b/exercises/075_quiz8.zig
@@ -54,12 +54,12 @@ fn makePath(from: *Place, to: *Place, dist: u8) Path {
// Using our new function, these path definitions take up considerably less
// space in our program now!
-const a_paths = [_]Path{ makePath(&a, &b, 2) };
+const a_paths = [_]Path{makePath(&a, &b, 2)};
const b_paths = [_]Path{ makePath(&b, &a, 2), makePath(&b, &d, 1) };
const c_paths = [_]Path{ makePath(&c, &d, 3), makePath(&c, &e, 2) };
const d_paths = [_]Path{ makePath(&d, &b, 1), makePath(&d, &c, 3), makePath(&d, &f, 7) };
const e_paths = [_]Path{ makePath(&e, &c, 2), makePath(&e, &f, 1) };
-const f_paths = [_]Path{ makePath(&f, &d, 7) };
+const f_paths = [_]Path{makePath(&f, &d, 7)};
//
// But is it more readable? That could be argued either way.
//