mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 02:44:43 +01:00
docs: update old reference from builtin.Type.Struct to builtin.Type.@"struct"
This commit is contained in:
parent
4720a79477
commit
59dc15fa0a
1 changed files with 1 additions and 1 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue