Closed zigo101 closed 1 year ago
In the the piece of code:
const len = @import("std").mem.len; test "vector looping" { const x = Vector(4, u8){ 255, 0, 255, 0 }; var sum = blk: { var tmp: u10 = 0; var i: u8 = 0; while (i < 4) : (i += 1) tmp += x[i]; break :blk tmp; }; try expect(sum == 510); }
In the the piece of code: