authorgravatar for yujiri@disroot.orgEvin Yulo <yujiri@disroot.org> 2022-09-12 18:13:48+00:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-10-29 17:55:06-04:00
log09a96cdfce0540e4c02dd3b0917de6b59edbc95c
treeec18a1714572170738263207fcd2c23fd8efe76b
parent949cca9f2a6a84ce1327bde3e982894bc8d91536

Fix #12822: Clarify langref about the behavior of undefined


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

doc/langref.html.in+2-1
......@@ -999,7 +999,8 @@ pub fn main() void {
999999 </p>
10001000 <p>
10011001 In {#link|Debug#} mode, Zig writes {#syntax#}0xaa{#endsyntax#} bytes to undefined memory. This is to catch
1002 bugs early, and to help detect use of undefined memory in a debugger.
1002 bugs early, and to help detect use of undefined memory in a debugger. However, this behavior is only an
1003 implementation feature, not a language semantic, so it is not guaranteed to be observable to code.
10031004 </p>
10041005 {#header_close#}
10051006 {#header_close#}