authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-09-14 21:20:08 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-09-14 21:20:08 -07:00
log4f787a692959390d41b948f87426dfdf69d832af
tree3de0dd9c5d61e217cbb47ce979d5df9502f91e14
parent3452a56e84fb1972e799e0b539a1b2e06bd6fa28

fix fn signature to accept optionals


1 files changed, 1 insertions(+), 1 deletions(-)

src/lib.zig+1-1
......@@ -237,7 +237,7 @@ fn doif(alloc: *std.mem.Allocator, writer: anytype, comptime top: astgen.Value,
237237 }
238238}
239239
240fn docap(alloc: *std.mem.Allocator, writer: anytype, comptime top: astgen.Value, comptime bottom: astgen.Value, data: anytype, ctx: anytype, indent: usize, flag1: bool, flag2: bool) anyerror!void {
240fn docap(alloc: *std.mem.Allocator, writer: anytype, comptime top: astgen.Value, comptime bottom: astgen.Value, data: anytype, ctx: anytype, indent: usize, flag1: bool, flag2: anytype) anyerror!void {
241241 if (flag2) |_| {
242242 try do(alloc, writer, top, data, ctx, indent, flag1);
243243 } else {