mirror of
https://codeberg.org/andyscott/ziglings.git
synced 2024-11-08 11:20:46 -05:00
methods not namespaced
This commit is contained in:
parent
c7b00fd83c
commit
6157066b95
1 changed files with 2 additions and 2 deletions
|
@ -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", .{});
|
||||
|
|
Loading…
Reference in a new issue