ziglings/patches/patches/048_methods2.patch

11 lines
358 B
Diff

--- exercises/048_methods2.zig 2023-10-03 22:15:22.122241138 +0200
+++ answers/048_methods2.zig 2023-10-05 20:04:07.059433611 +0200
@@ -54,7 +54,7 @@
// This gets the next elephant or stops:
// which method do we want here?
- e = if (e.hasTail()) e.??? else break;
+ e = if (e.hasTail()) e.getTail() else break;
}
}