075_quiz8.patch 426 B

123456789101112131415
  1. --- exercises/075_quiz8.zig 2023-11-21 14:48:15.440702720 +0100
  2. +++ answers/075_quiz8.zig 2023-11-21 14:50:23.453311616 +0100
  3. @@ -49,7 +49,11 @@
  4. //
  5. // Please fill in the body of this function!
  6. fn makePath(from: *Place, to: *Place, dist: u8) Path {
  7. -
  8. + return Path{
  9. + .from = from,
  10. + .to = to,
  11. + .dist = dist,
  12. + };
  13. }
  14. // Using our new function, these path definitions take up considerably less