From 38b6de1e7156ad8b92284273f544ab1b8a803b49 Mon Sep 17 00:00:00 2001 From: Dave Gauer Date: Sun, 4 Apr 2021 16:05:44 -0400 Subject: Added epic ex058 - quiz 7 --- patches/patches/058_quiz7.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 patches/patches/058_quiz7.patch (limited to 'patches') 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 { -- cgit v1.2.3-ZIG