mirror of
https://git.aramjonghu.dev/AramJonghu/ziglings.git
synced 2026-09-04 17:23:44 +02:00
change empty init to '???' placeholder
This commit is contained in:
@@ -61,8 +61,8 @@ pub fn main() !void {
|
||||
// initialize the allocator
|
||||
const allocator = arena.allocator();
|
||||
|
||||
// allocate memory for this array instead of empty initialization
|
||||
var avg: []f64 = {};
|
||||
// allocate memory for this array
|
||||
var avg: []f64 = ???;
|
||||
|
||||
runningAverage(arr, avg);
|
||||
std.debug.print("Running Average: ", .{});
|
||||
|
||||
Reference in New Issue
Block a user