From b22ef55f362ca77d23a09c5d27065159fbc5f1f6 Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 5 Apr 2024 14:01:17 +0100 Subject: [PATCH] langref: Fix example typo --- doc/langref.html.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/langref.html.in b/doc/langref.html.in index 0238fac432..c70f088a51 100644 --- a/doc/langref.html.in +++ b/doc/langref.html.in @@ -5577,7 +5577,7 @@ fn doAThing(str: []u8) void { errors in the {#syntax#}else{#endsyntax#} case, which now contains a narrower error set:

{#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) {