ziglings.org/patches/patches/058_quiz7.patch

15 lines
549 B
Diff
Raw Normal View History

195,196c195,196
2021-04-04 16:05:44 -04:00
< .place => print("{s}", .{p.name}),
< .path => print("--{}->", .{p.dist}),
---
> .place => |p| print("{s}", .{p.name}),
> .path => |p| print("--{}->", .{p.dist}),
258c258
2021-04-04 16:05:44 -04:00
< if (place == entry.*.?.place) return entry;
---
> if (place == entry.*.?.place) return &entry.*.?;
312c312
2021-04-04 16:05:44 -04:00
< fn getTripTo(self: *HermitsNotebook, trip: []?TripItem, dest: *Place) void {
---
> fn getTripTo(self: *HermitsNotebook, trip: []?TripItem, dest: *Place) TripError!void {