summaryrefslogtreecommitdiff
path: root/exercises/067_comptime2.zig
diff options
context:
space:
mode:
authorChris Boesch <chrboesch@noreply.codeberg.org>2026-05-04 17:15:30 +0200
committerChris Boesch <chrboesch@noreply.codeberg.org>2026-05-04 17:15:30 +0200
commit8af3372cf204861f8541f91e47543f1b33337c5b (patch)
treea333fe8d515ae8fad19a94e37bdc4649f6dd662c /exercises/067_comptime2.zig
parent1ba1e301a8a977f652157ca60a0522c95bc736aa (diff)
fixed removed array multiplication
Diffstat (limited to 'exercises/067_comptime2.zig')
-rw-r--r--exercises/067_comptime2.zig8
1 files changed, 4 insertions, 4 deletions
diff --git a/exercises/067_comptime2.zig b/exercises/067_comptime2.zig
index bdbc3da..e212263 100644
--- a/exercises/067_comptime2.zig
+++ b/exercises/067_comptime2.zig
@@ -39,16 +39,16 @@ pub fn main() void {
var count = 0;
count += 1;
- const a1: [count]u8 = .{'A'} ** count;
+ const a1: [count]u8 = @splat('A');
count += 1;
- const a2: [count]u8 = .{'B'} ** count;
+ const a2: [count]u8 = @splat('B');
count += 1;
- const a3: [count]u8 = .{'C'} ** count;
+ const a3: [count]u8 = @splat('C');
count += 1;
- const a4: [count]u8 = .{'D'} ** count;
+ const a4: [count]u8 = @splat('D');
print("{s} {s} {s} {s}\n", .{ a1, a2, a3, a4 });