1
0
Fork 0
mirror of https://github.com/zigzap/zap.git synced 2025-10-21 07:34:08 +00:00

fix returned struct field

This commit is contained in:
Brook Jeynes 2023-12-31 10:59:18 +10:00
parent 22d454d134
commit 6611269721

View file

@ -78,7 +78,7 @@ pub const Mustache = struct {
const ret = fiobj_mustache_new(args); const ret = fiobj_mustache_new(args);
switch (err) { switch (err) {
0 => return Self{ 0 => return Self{
.handler = ret.?, .handle = ret.?,
}, },
1 => return Error.MUSTACHE_ERR_TOO_DEEP, 1 => return Error.MUSTACHE_ERR_TOO_DEEP,
2 => return Error.MUSTACHE_ERR_CLOSURE_MISMATCH, 2 => return Error.MUSTACHE_ERR_CLOSURE_MISMATCH,