aboutsummaryrefslogtreecommitdiff
path: root/exercises/075_quiz8.zig
diff options
context:
space:
mode:
Diffstat (limited to 'exercises/075_quiz8.zig')
-rw-r--r--exercises/075_quiz8.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/exercises/075_quiz8.zig b/exercises/075_quiz8.zig
index 14fab18..ff5e569 100644
--- a/exercises/075_quiz8.zig
+++ b/exercises/075_quiz8.zig
@@ -81,7 +81,7 @@ const TripItem = union(enum) {
place: *const Place,
path: *const Path,
- fn print(self: TripItem) void {
+ fn printMe(self: TripItem) void {
switch (self) {
.place => |p| print("{s}", .{p.name}),
.path => |p| print("--{}->", .{p.dist}),
@@ -201,7 +201,7 @@ fn printTrip(trip: []?TripItem) void {
while (i > 0) {
i -= 1;
if (trip[i] == null) continue;
- trip[i].?.print();
+ trip[i].?.printMe();
}
print("\n", .{});