diff --git a/src/Autodoc.zig b/src/Autodoc.zig index 42b433120b..c421c11a6c 100644 --- a/src/Autodoc.zig +++ b/src/Autodoc.zig @@ -1375,7 +1375,7 @@ fn walkInstruction( self.exprs.items[bin_index] = .{ .builtin = .{ .name = @tagName(tags[inst_index]), .param = param_index } }; return DocData.WalkResult{ - .typeRef = param.typeRef, + .typeRef = param.typeRef orelse .{ .type = @enumToInt(Ref.type_type) }, .expr = .{ .builtinIndex = bin_index }, }; },