diff --git a/lib/std/meta.zig b/lib/std/meta.zig index c4e3774da5..f591b5cc2f 100644 --- 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)) {