summaryrefslogtreecommitdiff
path: root/patches/patches/025_errors5.patch
blob: 6dad689c03d7684aaa2348be07d750be1ce5b178 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- 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;
 }