mirror of
https://git.aramjonghu.dev/AramJonghu/ziglings.git
synced 2026-09-06 10:13:29 +02:00
changed the patch files that we can also use them with busybox for testing in Woodpecker
This commit is contained in:
@@ -1,8 +1,17 @@
|
||||
28c28
|
||||
< const leet = ???;
|
||||
---
|
||||
> const leet = le ++ et;
|
||||
33c33
|
||||
< const bit_pattern = [_]u8{ ??? } ** 3;
|
||||
---
|
||||
> const bit_pattern = [_]u8{ 1, 0, 0, 1 } ** 3;
|
||||
--- exercises/005_arrays2.zig 2023-10-03 22:15:22.122241138 +0200
|
||||
+++ answers/005_arrays2.zig 2023-10-05 20:04:06.862763262 +0200
|
||||
@@ -25,12 +25,12 @@
|
||||
// (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.
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user