summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar thisLight2021-10-13 10:18:53 +0800
committerGravatar thisLight2021-10-13 10:18:53 +0800
commita4c4e80d9700764f12a052a075fdb57b9b0da81b (patch)
tree28a9bb30af52c755d6c71865a040dd5e66066ec5
parentDynamicStatement.bindField: fix incompatible if branches for optionals (diff)
downloadzig-sqlite-a4c4e80d9700764f12a052a075fdb57b9b0da81b.tar.gz
zig-sqlite-a4c4e80d9700764f12a052a075fdb57b9b0da81b.tar.xz
zig-sqlite-a4c4e80d9700764f12a052a075fdb57b9b0da81b.zip
DynamicStatement.translateError: fix typo in name
-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 {