Skip to content

Commit

Permalink
var -> const fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Srekel committed Dec 26, 2023
1 parent 351c593 commit 408318c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Transpiler.zig
Original file line number Diff line number Diff line change
Expand Up @@ -1677,7 +1677,7 @@ fn visitFunctionProtoType(self: *Self, name: []const u8, value: *const json.Valu
try self.out.print("pub const {s} = fn(", .{name});

var return_type_opt: ?*const json.Value = null;
var inner_opt = value.object.getPtr("inner");
const inner_opt = value.object.getPtr("inner");
if (inner_opt) |inner| {
for (inner.array.items, 0..) |*item, i| {
if (return_type_opt == null) {
Expand Down

0 comments on commit 408318c

Please sign in to comment.