| ... | @@ -7694,7 +7694,8 @@ test "call foo" { | ... | @@ -7694,7 +7694,8 @@ test "call foo" { |
| 7694 | <p> | 7694 | <p> |
| 7695 | Invokes the panic handler function. By default the panic handler function | 7695 | Invokes the panic handler function. By default the panic handler function |
| 7696 | calls the public {#syntax#}panic{#endsyntax#} function exposed in the root source file, or | 7696 | 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#}. |
| 7698 | </p> | 7699 | </p> |
| 7699 | <p>Generally it is better to use {#syntax#}@import("std").debug.panic{#endsyntax#}. | 7700 | <p>Generally it is better to use {#syntax#}@import("std").debug.panic{#endsyntax#}. |
| 7700 | However, {#syntax#}@panic{#endsyntax#} can be useful for 2 scenarios: | 7701 | However, {#syntax#}@panic{#endsyntax#} can be useful for 2 scenarios: |