From 87cc4804d3c5dbba2de44b19de439a3d3f3020ed Mon Sep 17 00:00:00 2001 From: Vincent Rischmann Date: Sun, 24 Apr 2022 11:25:53 +0200 Subject: clarify type name --- sqlite.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sqlite.zig b/sqlite.zig index fd52691..4500d8d 100644 --- a/sqlite.zig +++ b/sqlite.zig @@ -1726,9 +1726,9 @@ pub const DynamicStatement = struct { // // If however there are no name bind markers then the behaviour will revert to using the field index in the struct, and the fields order must be correct. fn bind(self: *Self, options: anytype, values: anytype) !void { - const StructType = @TypeOf(values); + const Type = @TypeOf(values); - switch (@typeInfo(StructType)) { + switch (@typeInfo(Type)) { .Struct => |StructTypeInfo| { inline for (StructTypeInfo.fields) |struct_field, struct_field_i| { const field_value = @field(values, struct_field.name); @@ -1759,7 +1759,7 @@ pub const DynamicStatement = struct { try self.bindField(ArrayTypeInfo.child, options, "unknown", @intCast(c_int, index), value_to_bind); } }, - else => @compileError("Unsupported type for values: " ++ @typeName(StructType)), + else => @compileError("Unsupported type for values: " ++ @typeName(Type)), } } -- cgit v1.2.3