diff options
author | Dave Gauer <dave@ratfactor.com> | 2021-04-04 16:05:44 -0400 |
---|---|---|
committer | Dave Gauer <dave@ratfactor.com> | 2021-04-04 16:05:44 -0400 |
commit | 38b6de1e7156ad8b92284273f544ab1b8a803b49 (patch) | |
tree | 1445885b4164306d1c72ba33e346ac5276100308 /patches | |
parent | bfa0f08795890d32b949001a50d8ff947d1bda33 (diff) | |
download | ziglings-38b6de1e7156ad8b92284273f544ab1b8a803b49.tar.gz ziglings-38b6de1e7156ad8b92284273f544ab1b8a803b49.tar.bz2 ziglings-38b6de1e7156ad8b92284273f544ab1b8a803b49.tar.xz ziglings-38b6de1e7156ad8b92284273f544ab1b8a803b49.zip |
Added epic ex058 - quiz 7
Diffstat (limited to 'patches')
-rw-r--r-- | patches/patches/058_quiz7.patch | 14 |
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 { |