authorgravatar for techatrix@mailbox.orgTechatrix <techatrix@mailbox.org> 2023-01-10 23:02:29+00:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2023-01-10 18:02:29-05:00
log0a8b7ad368ac3933048614a87f0398b5e4768acc
tree805679cc643c7923af9eb18e0a878e25026e3a34
parent24d8d12caf05e52fe938d1eb01211b2470cffb41
signaturebadge-question-mark Signed by PGP key 4AEE18F83AFDEB23

langref: fix unclosed and lonely tag (#14250)


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

doc/langref.html.in+3-1
...@@ -5588,6 +5588,7 @@ test "createFoo" {...@@ -5588,6 +5588,7 @@ test "createFoo" {
5588 <p>5588 <p>
5589 To ensure that {#syntax#}deallocateFoo{#endsyntax#} is properly called5589 To ensure that {#syntax#}deallocateFoo{#endsyntax#} is properly called
5590 when returning an error, you must add an {#syntax#}errdefer{#endsyntax#} outside of the block:5590 when returning an error, you must add an {#syntax#}errdefer{#endsyntax#} outside of the block:
5591 </p>
5591 {#code_begin|test|test_errdefer_block#}5592 {#code_begin|test|test_errdefer_block#}
5592const std = @import("std");5593const std = @import("std");
5593const Allocator = std.mem.Allocator;5594const Allocator = std.mem.Allocator;
...@@ -9411,8 +9412,9 @@ test "integer truncation" {...@@ -9411,8 +9412,9 @@ test "integer truncation" {
9411 <li>{#link|Enum Literals#}</li>9412 <li>{#link|Enum Literals#}</li>
9412 <li>{#link|union#}</li>9413 <li>{#link|union#}</li>
9413 </ul>9414 </ul>
9414 <p>9415<p>
9415 {#syntax#}@Type{#endsyntax#} is not available for {#link|Functions#}.9416 {#syntax#}@Type{#endsyntax#} is not available for {#link|Functions#}.
9417 </p>
9416 {#header_close#}9418 {#header_close#}
9417 {#header_open|@typeInfo#}9419 {#header_open|@typeInfo#}
9418 <pre>{#syntax#}@typeInfo(comptime T: type) std.builtin.Type{#endsyntax#}</pre>9420 <pre>{#syntax#}@typeInfo(comptime T: type) std.builtin.Type{#endsyntax#}</pre>