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