From 1a2f83d84b5b61e026cb5fa3ca5e5fc4280a7d59 Mon Sep 17 00:00:00 2001 From: SuperAuguste Date: Wed, 13 May 2020 19:40:34 -0400 Subject: [PATCH] Fix empty comments --- src/main.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.zig b/src/main.zig index e8e96ca..c77f3c6 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 orelse "", + .value = doc_comments, }; switch (decl.id) {