mirror of
https://codeberg.org/andyscott/ziglings.git
synced 2024-11-09 19:40:48 -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,
|
place: *const Place,
|
||||||
path: *const Path,
|
path: *const Path,
|
||||||
|
|
||||||
fn print(self: TripItem) void {
|
fn printMe(self: TripItem) void {
|
||||||
switch (self) {
|
switch (self) {
|
||||||
.place => |p| print("{s}", .{p.name}),
|
.place => |p| print("{s}", .{p.name}),
|
||||||
.path => |p| print("--{}->", .{p.dist}),
|
.path => |p| print("--{}->", .{p.dist}),
|
||||||
|
@ -201,7 +201,7 @@ fn printTrip(trip: []?TripItem) void {
|
||||||
while (i > 0) {
|
while (i > 0) {
|
||||||
i -= 1;
|
i -= 1;
|
||||||
if (trip[i] == null) continue;
|
if (trip[i] == null) continue;
|
||||||
trip[i].?.print();
|
trip[i].?.printMe();
|
||||||
}
|
}
|
||||||
|
|
||||||
print("\n", .{});
|
print("\n", .{});
|
||||||
|
|
Loading…
Reference in a new issue