From 014560c3f5cb79d6d17c0205dddcf793d0aafac2 Mon Sep 17 00:00:00 2001 From: Luka Markušić Date: Sun, 31 May 2026 10:59:25 +0200 Subject: fix removed array multiplication --- exercises/110_files2.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'exercises/110_files2.zig') diff --git a/exercises/110_files2.zig b/exercises/110_files2.zig index 9dfaf05..c4cce08 100644 --- a/exercises/110_files2.zig +++ b/exercises/110_files2.zig @@ -36,10 +36,10 @@ pub fn main(init: std.process.Init) !void { const file = try output_dir.openFile(io, "zigling.txt", .{}); defer file.close(io); - // initialize an array of u8 with all letter 'A' + // initialize an array of u8 entirely with the letter 'A' // we need to pick the size of the array, 64 seems like a good number - // fix the initialization below - var content = ['A']*64; + // do you remember the array repetition function? + var content: ??? = ???('A'); // this should print out : `AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA` std.debug.print("{s}\n", .{content}); -- cgit v1.2.3