aboutsummaryrefslogtreecommitdiff
path: root/exercises/025_errors5.zig
diff options
context:
space:
mode:
authorChris Boesch <[email protected]>2023-11-21 14:26:23 +0000
committerChris Boesch <[email protected]>2023-11-21 14:26:23 +0000
commitf987a06cccc47b79e78203870eac443051002895 (patch)
treeb86b2d9f183722cefebec23e10408364aba969bb /exercises/025_errors5.zig
parentb7015c2d9d50da77cf1a3897f84e1b736649beef (diff)
parentb0511bb3c7ac0293edbb68fc54fbd8eba27a5882 (diff)
downloadziglings-f987a06cccc47b79e78203870eac443051002895.tar.xz
ziglings-f987a06cccc47b79e78203870eac443051002895.zip
Merge pull request 'Converted var to const if there is no mutation in the var.' (#28) from var_const into main
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/28
Diffstat (limited to 'exercises/025_errors5.zig')
-rw-r--r--exercises/025_errors5.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/exercises/025_errors5.zig b/exercises/025_errors5.zig
index 63595b1..94bf1c7 100644
--- a/exercises/025_errors5.zig
+++ b/exercises/025_errors5.zig
@@ -26,7 +26,7 @@ fn addFive(n: u32) MyNumberError!u32 {
// This function needs to return any error which might come back from detect().
// Please use a "try" statement rather than a "catch".
//
- var x = detect(n);
+ const x = detect(n);
return x + 5;
}