mirror of
https://codeberg.org/andyscott/ziglings.git
synced 2024-11-14 05:40:47 -05:00
7679f93f68
This is checked from compiler version 0.12.0-dev.1664
11 lines
381 B
Diff
11 lines
381 B
Diff
--- exercises/025_errors5.zig 2023-11-21 14:22:48.159250165 +0100
|
|
+++ answers/025_errors5.zig 2023-11-21 14:25:01.338277886 +0100
|
|
@@ -26,7 +26,7 @@
|
|
// This function needs to return any error which might come back from detect().
|
|
// Please use a "try" statement rather than a "catch".
|
|
//
|
|
- const x = detect(n);
|
|
+ const x = try detect(n);
|
|
|
|
return x + 5;
|
|
}
|