mirror of
https://codeberg.org/andyscott/ziglings.git
synced 2024-12-21 21:53:11 -05:00
Fix broken builtin name in exercise 96
This commit is contained in:
parent
39952817b3
commit
ccb580f95d
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ fn runningAverage(arr: []const f64, avg: []f64) void {
|
|||
|
||||
for (0.., arr) |index, val| {
|
||||
sum += val;
|
||||
avg[index] = sum / @intToFloat(f64, index + 1);
|
||||
avg[index] = sum / @floatFromInt(f64, index + 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue