| ... | @@ -5577,7 +5577,7 @@ fn doAThing(str: []u8) void { | ... | @@ -5577,7 +5577,7 @@ fn doAThing(str: []u8) void { |
| 5577 | errors in the {#syntax#}else{#endsyntax#} case, which now contains a narrower error set: | 5577 | errors in the {#syntax#}else{#endsyntax#} case, which now contains a narrower error set: |
| 5578 | </p> | 5578 | </p> |
| 5579 | {#syntax_block|zig|handle_some_error_scenarios.zig#} | 5579 | {#syntax_block|zig|handle_some_error_scenarios.zig#} |
| 5580 | fn doAnotherThing(str: []u8) error{InvaidChar}!void { | 5580 | fn doAnotherThing(str: []u8) error{InvalidChar}!void { |
| 5581 | if (parseU64(str, 10)) |number| { | 5581 | if (parseU64(str, 10)) |number| { |
| 5582 | doSomethingWithNumber(number); | 5582 | doSomethingWithNumber(number); |
| 5583 | } else |err| switch (err) { | 5583 | } else |err| switch (err) { |