From 7e123933b915f886da8a7bba1690588a8a04ac93 Mon Sep 17 00:00:00 2001 From: Dave Gauer Date: Mon, 18 Jan 2021 19:44:08 -0500 Subject: Ex 16 oops, forgot to unfix it. :-) --- 16_for2.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3-ZIG