fix format string (#565)

This commit is contained in:
Lee Cannon 2022-07-27 20:46:03 +01:00 committed by GitHub
parent 528fd26a13
commit cf8baa3586
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1525,7 +1525,7 @@ fn formatDetailledLabel(item: *types.CompletionItem, alloc: std.mem.Allocator) !
var s: usize = std.mem.indexOf(u8, it, "(") orelse return;
var e: usize = std.mem.lastIndexOf(u8, it, ")") orelse return;
if (e < s) {
logger.warn("something wrong when trying to build label detail for {s} kind: {s}", .{ it, item.kind });
logger.warn("something wrong when trying to build label detail for {s} kind: {}", .{ it, item.kind });
return;
}