Merge pull request 'Rephrase instruction for clarity' (#170) from factormystic/exercises:quiz-7-instruction-clarify into main

Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/170
This commit is contained in:
Chris Boesch 2024-10-27 15:03:25 +00:00
commit e2b20b3406

View file

@ -190,7 +190,7 @@ const TripItem = union(enum) {
fn printMe(self: TripItem) void { fn printMe(self: TripItem) void {
switch (self) { switch (self) {
// Oops! The hermit forgot how to capture the union values // 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! // 'p' so the print statements work!
.place => print("{s}", .{p.name}), .place => print("{s}", .{p.name}),
.path => print("--{}->", .{p.dist}), .path => print("--{}->", .{p.dist}),