Skip to content

Commit 2291a4f

Browse files
committed
fix(StructuredTable): compile error invalid type name
1 parent 7291d9b commit 2291a4f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/schema.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ pub fn StructuredTable(table_schema: type) type {
148148
return std.fmt.parseFloat(T, value) catch StructureError.UnexpectedType;
149149
},
150150
else => {
151-
@compileError(std.fmt.comptimePrint("unsupported field type for '{}'", .{@typeName(type_info)}));
151+
@compileError(std.fmt.comptimePrint("unsupported field type for '{}'", .{@typeName(T)}));
152152
},
153153
}
154154
}
@@ -182,7 +182,7 @@ pub fn StructuredTable(table_schema: type) type {
182182
return std.fmt.allocPrint(self.arena_allocator.allocator(), "{d}", .{value}) catch TableError.OutOfMemory;
183183
},
184184
else => {
185-
@compileError(std.fmt.comptimePrint("unsupported field type for '{}'", .{@typeName(type_info)}));
185+
@compileError(std.fmt.comptimePrint("unsupported field type for '{}'", .{@typeName(T)}));
186186
},
187187
}
188188
}

0 commit comments

Comments
 (0)