From 4c393c7468a4f6a62ba8251cdeeddc47b5b2b73d Mon Sep 17 00:00:00 2001 From: Carl Ã…stholm Date: Tue, 13 Feb 2024 19:06:47 +0100 Subject: Update usages of `fmtId`/`isValidId` `{}` for decls `{p}` for enum fields `{p_}` for struct fields and in contexts following a `.` Elsewhere, `{p}` was used since it's equivalent to the old behavior. --- src/InternPool.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/InternPool.zig') diff --git a/src/InternPool.zig b/src/InternPool.zig index 4edc32e86c..1155d8c5ad 100644 --- a/src/InternPool.zig +++ b/src/InternPool.zig @@ -488,7 +488,7 @@ pub const NullTerminatedString = enum(u32) { if (comptime std.mem.eql(u8, specifier, "")) { try writer.writeAll(s); } else if (comptime std.mem.eql(u8, specifier, "i")) { - try writer.print("{}", .{std.zig.fmtId(s)}); + try writer.print("{p}", .{std.zig.fmtId(s)}); } else @compileError("invalid format string '" ++ specifier ++ "' for '" ++ @typeName(NullTerminatedString) ++ "'"); } -- cgit v1.2.3