diff options
| author | Chris Boesch <chrboesch@noreply.codeberg.org> | 2026-06-03 17:39:58 +0200 |
|---|---|---|
| committer | Chris Boesch <chrboesch@noreply.codeberg.org> | 2026-06-03 17:39:58 +0200 |
| commit | a403436fe8ca2ce7fc53e81365f91ecc6051ef97 (patch) | |
| tree | 6c3f664ff0a900e0d1132f54a1c0410baf389e33 /exercises/110_files2.zig | |
| parent | 3b865a0c175e7537aeea389fb5f05c6e3489a685 (diff) | |
| parent | beeca8d510891a272868f447e8193b0fcee7e2fc (diff) | |
Merge branch 'main' into fix-build-update
Diffstat (limited to 'exercises/110_files2.zig')
| -rw-r--r-- | exercises/110_files2.zig | 6 |
1 files changed, 3 insertions, 3 deletions
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}); |
