mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
12 lines
238 B
Zig
12 lines
238 B
Zig
const std = @import("std");
|
|
|
|
pub fn main() void {
|
|
const number = getNumberOrFail() catch unreachable;
|
|
std.debug.print("value: {}\n", .{number});
|
|
}
|
|
|
|
fn getNumberOrFail() !i32 {
|
|
return error.UnableToReturnNumber;
|
|
}
|
|
|
|
// exe=fail
|