authorgravatar for dmitry@mostovenko.devDmitry Mostovenko <dmitry@mostovenko.dev> 2026-07-30 01:08:58+03:00
committergravatar for dmitry@mostovenko.devDmitry Mostovenko <dmitry@mostovenko.dev> 2026-07-30 01:08:58+03:00
logd58883cd535f1623c6e0e9b025f1da1fb6672955
treeda78ee1f3463a7d5daedfca16bd5a5ee1d3726fc
parentbb296ab9b9752893eb362ed951c4ce344214eb96

langref: errdefer capture doc remove


1 files changed, 1 insertions(+), 1 deletions(-)

doc/langref.html.in+1-1
...@@ -7499,7 +7499,7 @@ fn readU32Be() u32 {}...@@ -7499,7 +7499,7 @@ fn readU32Be() u32 {}
7499 <pre>{#syntax#}errdefer{#endsyntax#}</pre>7499 <pre>{#syntax#}errdefer{#endsyntax#}</pre>
7500 </th>7500 </th>
7501 <td>7501 <td>
7502 {#syntax#}errdefer{#endsyntax#} will execute an expression when control flow leaves the current block if the function returns an error, the errdefer expression can capture the unwrapped value.7502 {#syntax#}errdefer{#endsyntax#} will execute an expression when control flow leaves the current block if the function returns an error.
7503 <ul>7503 <ul>
7504 <li>See also {#link|errdefer#}</li>7504 <li>See also {#link|errdefer#}</li>
7505 </ul>7505 </ul>