diff options
| author | sidharta <jeansidharta@gmail.com> | 2025-02-18 14:10:47 -0300 |
|---|---|---|
| committer | Alex Rønne Petersen <alex@alexrp.com> | 2025-02-18 23:35:16 +0100 |
| commit | 59dc15fa0ac1253e999a6a0bddd1eac4fa058c77 (patch) | |
| tree | 0c6a6d67e6c95d319c3fe82e77fdd94d7e45d52f /lib/std/meta.zig | |
| parent | 4720a79477e7f0faf30bcce3ea4bfd3056469a79 (diff) | |
| download | zig-59dc15fa0ac1253e999a6a0bddd1eac4fa058c77.tar.gz zig-59dc15fa0ac1253e999a6a0bddd1eac4fa058c77.zip | |
docs: update old reference from builtin.Type.Struct to builtin.Type.@"struct"
Diffstat (limited to 'lib/std/meta.zig')
| -rw-r--r-- | lib/std/meta.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/meta.zig b/lib/std/meta.zig index c4e3774da5..f591b5cc2f 100644 --- a/lib/std/meta.zig +++ b/lib/std/meta.zig @@ -261,7 +261,7 @@ test containerLayout { try testing.expect(containerLayout(U3) == .@"extern"); } -/// Instead of this function, prefer to use e.g. `@typeInfo(foo).Struct.decls` +/// Instead of this function, prefer to use e.g. `@typeInfo(foo).@"struct".decls` /// directly when you know what kind of type it is. pub fn declarations(comptime T: type) []const Type.Declaration { return switch (@typeInfo(T)) { |
