Browse Source

Fix broken builtin name in exercise 96

lording 2 years ago
parent
commit
ccb580f95d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      exercises/096_memory_allocation.zig

+ 1 - 1
exercises/096_memory_allocation.zig

@@ -45,7 +45,7 @@ fn runningAverage(arr: []const f64, avg: []f64) void {
 
 
     for (0.., arr) |index, val| {
     for (0.., arr) |index, val| {
         sum += val;
         sum += val;
-        avg[index] = sum / @intToFloat(f64, index + 1);
+        avg[index] = sum / @floatFromInt(f64, index + 1);
     }
     }
 }
 }