aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/exercises/023_errors3.zig
diff options
context:
space:
mode:
Diffstat (limited to 'exercises/023_errors3.zig')
-rw-r--r--exercises/023_errors3.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/exercises/023_errors3.zig b/exercises/023_errors3.zig
index 81dd733..195f21a 100644
--- a/exercises/023_errors3.zig
+++ b/exercises/023_errors3.zig
@@ -11,8 +11,8 @@ const std = @import("std");
const MyNumberError = error{TooSmall};
pub fn main() void {
- var a: u32 = addTwenty(44) catch 22;
- var b: u32 = addTwenty(4) ??? 22;
+ const a: u32 = addTwenty(44) catch 22;
+ const b: u32 = addTwenty(4) ??? 22;
std.debug.print("a={}, b={}\n", .{ a, b });
}