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 {...@@ -999,7 +999,8 @@ pub fn main() void {
999 </p>999 </p>
1000 <p>1000 <p>
1001 In {#link|Debug#} mode, Zig writes {#syntax#}0xaa{#endsyntax#} bytes to undefined memory. This is to catch1001 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.
1003 </p>1004 </p>
1004 {#header_close#}1005 {#header_close#}
1005 {#header_close#}1006 {#header_close#}