aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/patches
diff options
context:
space:
mode:
authorDave Gauer <dave@ratfactor.com>2021-04-04 16:05:44 -0400
committerDave Gauer <dave@ratfactor.com>2021-04-04 16:05:44 -0400
commit8ebc7009c1767e804806725d95d67b86f75d6e69 (patch)
tree1445885b4164306d1c72ba33e346ac5276100308 /patches
parent9ba798a81000a2c3f0b1899cf11e88be0ce64cb0 (diff)
Added epic ex058 - quiz 7
Diffstat (limited to 'patches')
-rw-r--r--patches/patches/058_quiz7.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/patches/patches/058_quiz7.patch b/patches/patches/058_quiz7.patch
new file mode 100644
index 0000000..6b79676
--- /dev/null
+++ b/patches/patches/058_quiz7.patch
@@ -0,0 +1,14 @@
+188,189c188,189
+< .place => print("{s}", .{p.name}),
+< .path => print("--{}->", .{p.dist}),
+---
+> .place => |p| print("{s}", .{p.name}),
+> .path => |p| print("--{}->", .{p.dist}),
+251c251
+< if (place == entry.*.?.place) return entry;
+---
+> if (place == entry.*.?.place) return &entry.*.?;
+305c305
+< fn getTripTo(self: *HermitsNotebook, trip: []?TripItem, dest: *Place) void {
+---
+> fn getTripTo(self: *HermitsNotebook, trip: []?TripItem, dest: *Place) TripError!void {