diff options
Diffstat (limited to 'sqlite.zig')
| -rw-r--r-- | sqlite.zig | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -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 { |