Skip to content

Commit 59dc15f

Browse files
Jeansidhartaalexrp
authored andcommitted
docs: update old reference from builtin.Type.Struct to builtin.Type.@"struct"
1 parent 4720a79 commit 59dc15f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/std/meta.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ test containerLayout {
261261
try testing.expect(containerLayout(U3) == .@"extern");
262262
}
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`
265265
/// directly when you know what kind of type it is.
266266
pub fn declarations(comptime T: type) []const Type.Declaration {
267267
return switch (@typeInfo(T)) {

0 commit comments

Comments
 (0)