Ensure the patches are up-to-date and consistent

Add the update-patches.py tool.

Update all the patches, so that the files are up-to-date and use the
same patch file format.
This commit is contained in:
Manlio Perillo
2023-04-17 09:19:49 +02:00
parent 7d7be0482c
commit c7697a4282
14 changed files with 110 additions and 71 deletions

View File

@@ -1,18 +1,8 @@
--- exercises/080_anonymous_structs.zig
+++ answers/080_anonymous_structs.zig
@@ -48,13 +48,13 @@
// * circle1 should hold i32 integers
// * circle2 should hold f32 floats
//
- var circle1 = ??? {
+ var circle1 = Circle(i32){
.center_x = 25,
.center_y = 70,
.radius = 15,
};
- var circle2 = ??? {
+ var circle2 = Circle(f32){
.center_x = 25.234,
.center_y = 70.999,
.radius = 15.714,
51c51
< var circle1 = ??? {
---
> var circle1 = Circle(i32){
57c57
< var circle2 = ??? {
---
> var circle2 = Circle(f32){