mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 14:23:09 +00:00
langref: Fix example typo
This commit is contained in:
parent
23f729aec9
commit
b22ef55f36
@ -5577,7 +5577,7 @@ fn doAThing(str: []u8) void {
|
||||
errors in the {#syntax#}else{#endsyntax#} case, which now contains a narrower error set:
|
||||
</p>
|
||||
{#syntax_block|zig|handle_some_error_scenarios.zig#}
|
||||
fn doAnotherThing(str: []u8) error{InvaidChar}!void {
|
||||
fn doAnotherThing(str: []u8) error{InvalidChar}!void {
|
||||
if (parseU64(str, 10)) |number| {
|
||||
doSomethingWithNumber(number);
|
||||
} else |err| switch (err) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user