This commit is contained in:
parent
0bd5b2aa0d
commit
4de961fbec
|
@ -9,10 +9,10 @@ const std = @import("std");
|
|||
|
||||
const NumError = error{IllegalNumber};
|
||||
|
||||
pub fn main() void {
|
||||
pub fn main() !void {
|
||||
const stdout = std.io.getStdOut().writer();
|
||||
|
||||
const my_num: u32 = getNumber();
|
||||
const my_num: u32 = getNumber() catch 42;
|
||||
|
||||
try stdout.print("my_num={}\n", .{my_num});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue