diff options
author | Dave Gauer <dave@ratfactor.com> | 2021-01-18 19:44:08 -0500 |
---|---|---|
committer | Dave Gauer <dave@ratfactor.com> | 2021-01-18 19:44:08 -0500 |
commit | 7e123933b915f886da8a7bba1690588a8a04ac93 (patch) | |
tree | f1ac6b98bdb57ed0f5bbd416ef592d2662fd3c7f /16_for2.zig | |
parent | 2bda44bc586ee16dd3fe0bce1ead9372a83a71f3 (diff) | |
download | ziglings-7e123933b915f886da8a7bba1690588a8a04ac93.tar.gz ziglings-7e123933b915f886da8a7bba1690588a8a04ac93.tar.bz2 ziglings-7e123933b915f886da8a7bba1690588a8a04ac93.tar.xz ziglings-7e123933b915f886da8a7bba1690588a8a04ac93.zip |
Ex 16 oops, forgot to unfix it. :-)
Diffstat (limited to '16_for2.zig')
-rw-r--r-- | 16_for2.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/16_for2.zig b/16_for2.zig index 914d047..4b01b86 100644 --- a/16_for2.zig +++ b/16_for2.zig @@ -18,7 +18,7 @@ pub fn main() void { // the value of the place as a power of two for each bit. See if // you can figure out the missing piece: // - for (bits) |bit, i| { + for (bits) |bit, ???| { var place_value = std.math.pow(u32, 2, @intCast(u32, i)); value += place_value * bit; } |