diff --git a/src/main.zig b/src/main.zig index c77f3c6..e8e96ca 100644 --- a/src/main.zig +++ b/src/main.zig @@ -225,7 +225,7 @@ fn nodeToCompletion(alloc: *std.mem.Allocator, tree: *std.zig.ast.Tree, decl: *s var doc_comments = try analysis.getDocComments(alloc, tree, decl); var doc = types.MarkupContent{ .kind = .Markdown, - .value = doc_comments, + .value = doc_comments orelse "", }; switch (decl.id) {