025_errors5.patch 381 B

1234567891011
  1. --- exercises/025_errors5.zig 2023-11-21 14:22:48.159250165 +0100
  2. +++ answers/025_errors5.zig 2023-11-21 14:25:01.338277886 +0100
  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. - const x = detect(n);
  8. + const x = try detect(n);
  9. return x + 5;
  10. }