mirror of
https://codeberg.org/ziglings/exercises.git
synced 2026-06-10 17:09:59 +00:00
changed the patch files that we can also use them with busybox for testing in Woodpecker
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user