This commit is contained in:
Adam Millerchip 2021-12-26 13:58:14 +09:00
parent 0bd5b2aa0d
commit 4de961fbec
1 changed files with 2 additions and 2 deletions

View File

@ -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});
}