| ... | @@ -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 called | 5589 | 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#} |
| 5592 | const std = @import("std"); | 5593 | const std = @import("std"); |
| 5593 | const Allocator = std.mem.Allocator; | 5594 | const 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> |