mirror of
https://codeberg.org/andyscott/ziglings.git
synced 2024-11-08 19:20:47 -05:00
Ex 16 oops, forgot to unfix it. :-)
This commit is contained in:
parent
2bda44bc58
commit
7e123933b9
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue