1
0
Fork 0
mirror of https://github.com/ratfactor/ziglings synced 2024-05-05 01:56:03 +02:00

patch because of a change in @typeInfo

This commit is contained in:
Chris Boesch 2023-01-14 15:36:36 +01:00
parent 04893c7253
commit de6b91d413
3 changed files with 3 additions and 3 deletions

View File

@ -100,7 +100,7 @@ pub fn main() void {
//
// pub const StructField = struct {
// name: []const u8,
// field_type: type,
// type: type,
// default_value: anytype,
// is_comptime: bool,
// alignment: comptime_int,

View File

@ -41,7 +41,7 @@ pub fn main() void {
const fields = @typeInfo(Narcissus).Struct.fields;
??? {
if (field.field_type != void) {
if (field.type != void) {
print(" {s}", .{field.name});
}
}

View File

@ -96,7 +96,7 @@ fn printTuple(tuple: anytype) void {
//
// pub const StructField = struct {
// name: []const u8,
// field_type: type,
// type: type,
// default_value: anytype,
// is_comptime: bool,
// alignment: comptime_int,