| ... | ... | @@ -5472,7 +5472,8 @@ fn doAThing(str: []u8) !void { |
| 5472 | 5472 | <p> |
| 5473 | 5473 | Here we know for sure that "1234" will parse successfully. So we put the |
| 5474 | 5474 | {#syntax#}unreachable{#endsyntax#} value on the right hand side. {#syntax#}unreachable{#endsyntax#} generates |
| 5475 | | a panic in Debug and ReleaseSafe modes and undefined behavior in ReleaseFast mode. So, while we're debugging the |
| 5475 | a panic in {#link|Debug#} and {#link|ReleaseSafe#} modes and undefined behavior in |
| 5476 | {#link|ReleaseFast#} and {#link|ReleaseSmall#} modes. So, while we're debugging the |
| 5476 | 5477 | application, if there <em>was</em> a surprise error here, the application would crash |
| 5477 | 5478 | appropriately. |
| 5478 | 5479 | </p> |
| ... | ... | @@ -11891,7 +11892,7 @@ fn readU32Be() u32 {} |
| 11891 | 11892 | Depending on the build mode, {#syntax#}unreachable{#endsyntax#} may emit a panic. |
| 11892 | 11893 | <ul> |
| 11893 | 11894 | <li>Emits a panic in {#syntax#}Debug{#endsyntax#} and {#syntax#}ReleaseSafe{#endsyntax#} mode, or when using <kbd>zig test</kbd>.</li> |
| 11894 | | <li>Does not emit a panic in {#syntax#}ReleaseFast{#endsyntax#} mode, unless <kbd>zig test</kbd> is being used.</li> |
| 11895 | <li>Does not emit a panic in {#syntax#}ReleaseFast{#endsyntax#} and {#syntax#}ReleaseSmall{#endsyntax#} mode.</li> |
| 11895 | 11896 | <li>See also {#link|unreachable#}</li> |
| 11896 | 11897 | </ul> |
| 11897 | 11898 | </td> |