zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit e009c1596e2db3d6a5819b71b4f607d79a317913 (tree)
parent a3b2de1d1ec3a5ad78fed46e69f251e6ee19be50
Author: Michael Dusan <michael.dusan@gmail.com>
Date:   Sun, 12 Apr 2020 18:21:06 -0400

Merge pull request #5014 from nmeum/@panic-path

Update documentation of @panic
Diffstat:
Mdoc/langref.html.in | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

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