Fixed string printing with {s} format specifier

This commit is contained in:
Lee Cannon
2021-01-04 17:51:26 +00:00
parent f21c371baa
commit 2a9edf243d
8 changed files with 59 additions and 57 deletions

View File

@@ -813,7 +813,7 @@ pub fn resolveTypeOfNodeInternal(
const import_str = handle.tree.tokenSlice(import_param.castTag(.StringLiteral).?.token);
const new_handle = (store.resolveImport(handle, import_str[1 .. import_str.len - 1]) catch |err| {
log.debug("Error {} while processing import {}", .{ err, import_str });
log.debug("Error {} while processing import {s}", .{ err, import_str });
return null;
}) orelse return null;
@@ -2005,8 +2005,8 @@ pub const DocumentScope = struct {
var idx: usize = 0;
while (decl_it.next()) |name_decl| : (idx += 1) {
if (idx != 0) log.debug(", ", .{});
log.debug("{}", .{name_decl.key});
}
log.debug("{s}", .{name_decl.key});
log.debug("\n--------------------------\n", .{});
}
}