authorgravatar for soeren+git@soeren-tempel.netSören Tempel <soeren+git@soeren-tempel.net> 2020-04-12 11:41:00+02:00
committergravatar for soeren+git@soeren-tempel.netSören Tempel <soeren+git@soeren-tempel.net> 2020-04-12 13:08:50+02:00
log6f5a7b84571b65e921ae6d52bae5a5e4c7e25c4d
tree40fd0ea476f6c380cf788eb3379f25e7380414fb
parent8e9e126d41cbca619a2a4658fb38d10120388e8f

Update documentation of @panic

The default panic handler implementation was moved to `builtin.zig`.

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

doc/langref.html.in+2-1
......@@ -7694,7 +7694,8 @@ test "call foo" {
76947694 <p>
76957695 Invokes the panic handler function. By default the panic handler function
76967696 calls the public {#syntax#}panic{#endsyntax#} function exposed in the root source file, or
7697 if there is not one specified, invokes the one provided in {#syntax#}std/special/panic.zig{#endsyntax#}.
7697 if there is not one specified, the {#syntax#}std.builtin.default_panic{#endsyntax#}
7698 function from {#syntax#}std/builtin.zig{#endsyntax#}.
76987699 </p>
76997700 <p>Generally it is better to use {#syntax#}@import("std").debug.panic{#endsyntax#}.
77007701 However, {#syntax#}@panic{#endsyntax#} can be useful for 2 scenarios: