authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-08-12 18:50:04-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-08-12 18:50:39-07:00
log613c03321a0970cce3a5d04ede04ab4a24ac1dbb
tree9b2d72f4f8721df6c5254ee2b3801354539fba83
parent3ec6d655dd61ed5fd0a0d33e33e58b12d5b658f5

langref: fix typos

introduced in ac8a8d0c5996bbf627438768e3c23154a6404183

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

doc/langref.html.in+2-2
...@@ -5015,12 +5015,12 @@ fn cmpxchgWeakButNotAtomic(comptime T: type, ptr: *T, expected_value: T, new_val...@@ -5015,12 +5015,12 @@ fn cmpxchgWeakButNotAtomic(comptime T: type, ptr: *T, expected_value: T, new_val
5015 in an API runs the risk of introducing dead code into the codebase,5015 in an API runs the risk of introducing dead code into the codebase,
5016 unnoticed. For example, if the field is ever renamed, code which uses5016 unnoticed. For example, if the field is ever renamed, code which uses
5017 {#syntax#}@hasDecl{#endsyntax#} will compile successfully while failing5017 {#syntax#}@hasDecl{#endsyntax#} will compile successfully while failing
5018 to enable or disable an intended block of code. Even a simple a typo in5018 to enable or disable an intended block of code. Even a simple typo in
5019 the field name passed to {#syntax#}@hasDecl{#endsyntax#} would go5019 the field name passed to {#syntax#}@hasDecl{#endsyntax#} would go
5020 unnoticed by the compiler. Thus, it is safer to use alternative methods5020 unnoticed by the compiler. Thus, it is safer to use alternative methods
5021 to check for the presence or absence of a particular declaration where5021 to check for the presence or absence of a particular declaration where
5022 possible. For example, if the target operating system would indicate whether a particular5022 possible. For example, if the target operating system would indicate whether a particular
5023 function is available, it more maintainable to check5023 function is available, it is more maintainable to check
5024 {#syntax#}@import("builtin").target.os.tag{#endsyntax#} rather than5024 {#syntax#}@import("builtin").target.os.tag{#endsyntax#} rather than
5025 {#syntax#}@hasDecl{#endsyntax#}.</p>5025 {#syntax#}@hasDecl{#endsyntax#}.</p>
50265026