authorgravatar for jeansidharta@gmail.comsidharta <jeansidharta@gmail.com> 2025-02-18 14:10:47-03:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-02-18 23:35:16+01:00
log59dc15fa0ac1253e999a6a0bddd1eac4fa058c77
tree0c6a6d67e6c95d319c3fe82e77fdd94d7e45d52f
parent4720a79477e7f0faf30bcce3ea4bfd3056469a79

docs: update old reference from builtin.Type.Struct to builtin.Type.@"struct"


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

lib/std/meta.zig+1-1
...@@ -261,7 +261,7 @@ test containerLayout {...@@ -261,7 +261,7 @@ test containerLayout {
261 try testing.expect(containerLayout(U3) == .@"extern");261 try testing.expect(containerLayout(U3) == .@"extern");
262}262}
263263
264/// Instead of this function, prefer to use e.g. `@typeInfo(foo).Struct.decls`264/// Instead of this function, prefer to use e.g. `@typeInfo(foo).@"struct".decls`
265/// directly when you know what kind of type it is.265/// directly when you know what kind of type it is.
266pub fn declarations(comptime T: type) []const Type.Declaration {266pub fn declarations(comptime T: type) []const Type.Declaration {
267 return switch (@typeInfo(T)) {267 return switch (@typeInfo(T)) {