diff options
| author | Evin Yulo <yujiri@disroot.org> | 2022-09-12 18:13:48 +0000 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-10-29 17:55:06 -0400 |
| commit | 09a96cdfce0540e4c02dd3b0917de6b59edbc95c (patch) | |
| tree | ec18a1714572170738263207fcd2c23fd8efe76b /doc | |
| parent | 949cca9f2a6a84ce1327bde3e982894bc8d91536 (diff) | |
| download | zig-09a96cdfce0540e4c02dd3b0917de6b59edbc95c.tar.gz zig-09a96cdfce0540e4c02dd3b0917de6b59edbc95c.zip | |
Fix #12822: Clarify langref about the behavior of undefined
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/langref.html.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/langref.html.in b/doc/langref.html.in index 34fc7681c7..5da2697187 100644 --- a/doc/langref.html.in +++ b/doc/langref.html.in @@ -999,7 +999,8 @@ pub fn main() void { </p> <p> In {#link|Debug#} mode, Zig writes {#syntax#}0xaa{#endsyntax#} bytes to undefined memory. This is to catch - bugs early, and to help detect use of undefined memory in a debugger. + bugs early, and to help detect use of undefined memory in a debugger. However, this behavior is only an + implementation feature, not a language semantic, so it is not guaranteed to be observable to code. </p> {#header_close#} {#header_close#} |
