Просмотр исходного кода

Rephrase instruction for clarity

factormystic 9 месяцев назад
Родитель
Сommit
02478759b4
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      exercises/058_quiz7.zig

+ 1 - 1
exercises/058_quiz7.zig

@@ -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}),