Rephrase instruction for clarity

This commit is contained in:
factormystic 2024-10-26 20:43:47 +00:00
parent 173af62d34
commit 02478759b4

View file

@ -190,7 +190,7 @@ const TripItem = union(enum) {
fn printMe(self: TripItem) void {
switch (self) {
// Oops! The hermit forgot how to capture the union values
// in a switch statement. Please capture both values as
// in a switch statement. Please capture each value as
// 'p' so the print statements work!
.place => print("{s}", .{p.name}),
.path => print("--{}->", .{p.dist}),