Fixed a couple of typos

This commit is contained in:
Alexandros Naskos 2020-05-07 12:58:35 +03:00
parent 0283222e3a
commit 3fa5ef4b96

View File

@ -164,8 +164,7 @@ pub fn completeGlobal(id: i64, document: types.TextDocument) !void {
var completions = std.ArrayList(types.CompletionItem).init(allocator); var completions = std.ArrayList(types.CompletionItem).init(allocator);
// @TODO // try log("{}", .{&tree.root_node.decls});
try log("{}", .{&tree.root_node.decls});
var decls = tree.root_node.decls.iterator(0); var decls = tree.root_node.decls.iterator(0);
while (decls.next()) |decl_ptr| { while (decls.next()) |decl_ptr| {
@ -442,7 +441,7 @@ pub fn main() anyerror!void {
} }
} else if (offset >= 16) { } else if (offset >= 16) {
try log("OffseOt is greater than 16!", .{}); try log("Offset is greater than 16!", .{});
return; return;
} }