authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-09-26 12:05:49-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-09-26 12:05:49-04:00
log94e9b9c6255fe264ecb5850eb4edc0bb5c4b2a17
tree032ca9f10933ac9bca488099c180dde9122f18dd
parentefea7958f8bcd16349d5867f4132fbaf45df7065
signaturelock-open Commit is signed but in an unrecognized format.

docs: mention release-small along with release-fast


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

doc/langref.html.in+3-2
...@@ -8423,8 +8423,9 @@ pub fn build(b: *Builder) void {...@@ -8423,8 +8423,9 @@ pub fn build(b: *Builder) void {
8423 detected at compile-time, Zig emits a compile error and refuses to continue.8423 detected at compile-time, Zig emits a compile error and refuses to continue.
8424 Most undefined behavior that cannot be detected at compile-time can be detected8424 Most undefined behavior that cannot be detected at compile-time can be detected
8425 at runtime. In these cases, Zig has safety checks. Safety checks can be disabled8425 at runtime. In these cases, Zig has safety checks. Safety checks can be disabled
8426 on a per-block basis with {#link|setRuntimeSafety#}. The {#link|ReleaseFast#}8426 on a per-block basis with {#link|@setRuntimeSafety#}. The {#link|ReleaseFast#}
8427 build mode disables all safety checks in order to facilitate optimizations.8427 and {#link|ReleaseSmall#} build modes disable all safety checks (except where overridden
8428 by {#link|@setRuntimeSafety#}) in order to facilitate optimizations.
8428 </p>8429 </p>
8429 <p>8430 <p>
8430 When a safety check fails, Zig crashes with a stack trace, like this:8431 When a safety check fails, Zig crashes with a stack trace, like this: