diff options
author | Martin Ashby <martin@ashbysoft.com> | 2022-12-09 22:07:01 +0000 |
---|---|---|
committer | Martin Ashby <martin@ashbysoft.com> | 2022-12-09 22:07:01 +0000 |
commit | 0e447c7956410a993614f9337d6219e017722443 (patch) | |
tree | c12780891cbbd14b52695df1fe336cc8981de6d9 /exercises/005_arrays2.zig | |
parent | bb5b8f115a57fc8c85ac7344fe4dc0b796e32487 (diff) | |
download | ziglings-0e447c7956410a993614f9337d6219e017722443.tar.gz ziglings-0e447c7956410a993614f9337d6219e017722443.tar.bz2 ziglings-0e447c7956410a993614f9337d6219e017722443.tar.xz ziglings-0e447c7956410a993614f9337d6219e017722443.zip |
001-024 complete
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. // |