025_errors5.patch 377 B

1234567891011
  1. --- exercises/025_errors5.zig 2023-10-03 22:15:22.122241138 +0200
  2. +++ answers/025_errors5.zig 2023-10-05 20:04:06.952764946 +0200
  3. @@ -26,7 +26,7 @@
  4. // This function needs to return any error which might come back from detect().
  5. // Please use a "try" statement rather than a "catch".
  6. //
  7. - var x = detect(n);
  8. + var x = try detect(n);
  9. return x + 5;
  10. }