zig/doc/langref/try.zig

9 lines
176 B
Zig
Raw Permalink Normal View History

const parseU64 = @import("error_union_parsing_u64.zig").parseU64;
fn doAThing(str: []u8) !void {
const number = try parseU64(str, 10);
_ = number; // ...
}
// syntax