From 8af3372cf204861f8541f91e47543f1b33337c5b Mon Sep 17 00:00:00 2001 From: Chris Boesch Date: Mon, 4 May 2026 17:15:30 +0200 Subject: fixed removed array multiplication --- exercises/067_comptime2.zig | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'exercises/067_comptime2.zig') 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 }); -- cgit v1.2.3