Fix broken builtin name in exercise 96

This commit is contained in:
lording 2023-06-22 08:23:22 +00:00
parent 39952817b3
commit ccb580f95d

View file

@ -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);
}
}