diff options
author | Toby Vincent <tobyv@tobyvin.dev> | 2024-07-02 13:55:55 -0500 |
---|---|---|
committer | Toby Vincent <tobyv@tobyvin.dev> | 2024-08-06 14:31:34 -0500 |
commit | 76b3a6de32ebe5f411a8fa4e69cf2d1fee96a04d (patch) | |
tree | 03796901bd2d3d809be143684bdbac0b2d46bee1 /exercises/005_arrays2.zig | |
parent | 99c9c42ff2b9749e3036b922dd4952bc989be68c (diff) |
Diffstat (limited to 'exercises/005_arrays2.zig')
-rw-r--r-- | exercises/005_arrays2.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/exercises/005_arrays2.zig b/exercises/005_arrays2.zig index 497d400..e5058a9 100644 --- a/exercises/005_arrays2.zig +++ b/exercises/005_arrays2.zig @@ -25,12 +25,12 @@ pub fn main() void { // (Problem 1) // Please set this array concatenating the two arrays above. // It should result in: 1 3 3 7 - const leet = ???; + const leet = le ++ et; // (Problem 2) // Please set this array using repetition. // It should result in: 1 0 0 1 1 0 0 1 1 0 0 1 - const bit_pattern = [_]u8{ ??? } ** 3; + const bit_pattern = [_]u8{ 1, 0, 0, 1 } ** 3; // Okay, that's all of the problems. Let's see the results. // |