Commit 59dc15fa0a

sidharta <jeansidharta@gmail.com>
2025-02-18 18:10:47
docs: update old reference from builtin.Type.Struct to builtin.Type.@"struct"
1 parent 4720a79
Changed files (1)
lib
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)) {