diff --git a/doc/langref.html.in b/doc/langref.html.in index 3f331233729e445bfb477d2c980f1ba2c55053ea..384ecfffe341db7c64c05738ffc408020a6ab031 100644 --- a/doc/langref.html.in +++ b/doc/langref.html.in @@ -4955,7 +4955,7 @@ test "merge error sets" { {#header_open|Inferred Error Sets#}
Because many functions in Zig return a possible error, Zig supports inferring the error set. - To infer the error set for a function, use this syntax: + To infer the error set for a function, prepend the {#syntax#}!{#endsyntax#} operator to the function’s return type, like {#syntax#}!T{#endsyntax#}:
{#code_begin|test|inferred_error_sets#} // With an inferred error set