diff options
author | Dave Gauer <dave@ratfactor.com> | 2021-11-07 20:52:39 -0500 |
---|---|---|
committer | Dave Gauer <dave@ratfactor.com> | 2021-11-07 20:52:39 -0500 |
commit | d1e684126176214b65399034c96b6f52189b2b72 (patch) | |
tree | 5866b7f3a15945a73b946443fbd490fc8f4cc2d8 /exercises/075_quiz8.zig | |
parent | 266449b1dd8e5e89887aa84c2d10270cdd6c7936 (diff) | |
parent | dedd787f2dd0badc03caa1299adaf57eaeaae156 (diff) | |
download | ziglings-d1e684126176214b65399034c96b6f52189b2b72.tar.gz ziglings-d1e684126176214b65399034c96b6f52189b2b72.tar.bz2 ziglings-d1e684126176214b65399034c96b6f52189b2b72.tar.xz ziglings-d1e684126176214b65399034c96b6f52189b2b72.zip |
Merge branch 'main' of github.com:ratfactor/ziglings into main
Diffstat (limited to 'exercises/075_quiz8.zig')
-rw-r--r-- | exercises/075_quiz8.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/exercises/075_quiz8.zig b/exercises/075_quiz8.zig index ff5e569..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. // @@ -69,7 +69,7 @@ const f_paths = [_]Path{ makePath(&f, &d, 7) }; // // For example, we could create our own "path language" and // create Paths from that. Something like this, perhaps: -// +// // a -> (b[2]) // b -> (a[2] d[1]) // c -> (d[3] e[2]) |