changed the patch files that we can also use them with busybox for testing in Woodpecker

This commit is contained in:
Chris Boesch
2023-10-05 20:18:04 +02:00
parent 992323ac6c
commit 7491e3df91
109 changed files with 1606 additions and 770 deletions

View File

@@ -1,12 +1,18 @@
37c37
< const n: u8 = 50;
---
> var n: u8 = 50;
40c40
< const pi: u8 = 314159;
---
> const pi: u32 = 314159;
42c42
< const negative_eleven: u8 = -11;
---
> const negative_eleven: i8 = -11;
--- exercises/003_assignment.zig 2023-10-03 22:15:22.122241138 +0200
+++ answers/003_assignment.zig 2023-10-05 20:04:06.856096469 +0200
@@ -34,12 +34,12 @@
const std = @import("std");
pub fn main() void {
- const n: u8 = 50;
+ var n: u8 = 50;
n = n + 5;
- const pi: u8 = 314159;
+ const pi: u32 = 314159;
- const negative_eleven: u8 = -11;
+ const negative_eleven: i8 = -11;
// There are no errors in the next line, just explanation:
// Perhaps you noticed before that the print function takes two