summaryrefslogtreecommitdiff
path: root/sqlite.zig
diff options
context:
space:
mode:
Diffstat (limited to 'sqlite.zig')
-rw-r--r--sqlite.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/sqlite.zig b/sqlite.zig
index 06ade5d..59ebb28 100644
--- a/sqlite.zig
+++ b/sqlite.zig
@@ -1118,7 +1118,7 @@ pub const DynamicStatement = struct {
1118 } 1118 }
1119 } 1119 }
1120 1120
1121 fn tanslateError(value: anytype) !void { 1121 fn translateError(value: anytype) !void {
1122 if (@TypeOf(value) != void) { 1122 if (@TypeOf(value) != void) {
1123 if (@typeInfo(@TypeOf(value)) == .ErrorUnion and @typeInfo(@TypeOf(value)).ErrorUnion.payload == void) { 1123 if (@typeInfo(@TypeOf(value)) == .ErrorUnion and @typeInfo(@TypeOf(value)).ErrorUnion.payload == void) {
1124 return value; 1124 return value;
@@ -1182,7 +1182,7 @@ pub const DynamicStatement = struct {
1182 }, 1182 },
1183 }; 1183 };
1184 1184
1185 return tanslateError(val); 1185 return translateError(val);
1186 } 1186 }
1187 1187
1188 fn bind(self: *Self, options: anytype, values: anytype) !void { 1188 fn bind(self: *Self, options: anytype, values: anytype) !void {