Skip to content

Commit

Permalink
docs: update old reference from builtin.Type.Struct to builtin.Type.@…
Browse files Browse the repository at this point in the history
…"struct"
  • Loading branch information
Jeansidharta authored and alexrp committed Feb 18, 2025
1 parent 4720a79 commit 59dc15f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/std/meta.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 59dc15f

Please sign in to comment.