Change the step

Signed-off-by: jmug <u.g.a.mariano@gmail.com>
This commit is contained in:
Mariano Uvalle 2025-04-28 00:36:19 -07:00
parent c57e9c1b7a
commit 64f41ad5b9
2 changed files with 2 additions and 2 deletions

View file

@ -2,8 +2,8 @@ const expect = @import("std").testing.expect;
pub export fn addUpTo(to: u32) u32 { pub export fn addUpTo(to: u32) u32 {
var res: u32 = 0; var res: u32 = 0;
for (0..to) |i| { for (0..to) |_| {
res += @intCast(i); res += to;
} }
return res; return res;
} }

Binary file not shown.