mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-04-27 19:09:47 +03:00
docs: update old reference from builtin.Type.Struct to builtin.Type.@"struct"
This commit is contained in:
committed by
Alex Rønne Petersen
parent
4720a79477
commit
59dc15fa0a
+1
-1
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user