commit 59dc15fa0ac1253e999a6a0bddd1eac4fa058c77 (tree)
parent 4720a79477e7f0faf30bcce3ea4bfd3056469a79
Author: sidharta <jeansidharta@gmail.com>
Date: Tue, 18 Feb 2025 14:10:47 -0300
docs: update old reference from builtin.Type.Struct to builtin.Type.@"struct"
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/std/meta.zig b/lib/std/meta.zig
@@ -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)) {