diff options
| author | Chris Boesch <chrboesch@noreply.codeberg.org> | 2026-05-04 17:30:31 +0200 |
|---|---|---|
| committer | Chris Boesch <chrboesch@noreply.codeberg.org> | 2026-05-04 17:30:31 +0200 |
| commit | dde51b3126b0f9cfbbf5d1ec49fd19ad37dd5a5f (patch) | |
| tree | a333fe8d515ae8fad19a94e37bdc4649f6dd662c /exercises/067_comptime2.zig | |
| parent | 1ba1e301a8a977f652157ca60a0522c95bc736aa (diff) | |
| parent | 8af3372cf204861f8541f91e47543f1b33337c5b (diff) | |
Merge pull request 'fixed removed array multiplication' (#423) from array_mult into main
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/423
Diffstat (limited to 'exercises/067_comptime2.zig')
| -rw-r--r-- | exercises/067_comptime2.zig | 8 |
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 }); |
