diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2025-08-31 19:28:21 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-31 19:28:21 -0700 |
| commit | 4c01a6553a1efef727b4f1cf7bb8dd9e53bd3cd5 (patch) | |
| tree | 122051721252ae70676f0be27b1978d8caf7bb48 /src/InternPool.zig | |
| parent | 3aa31ffd868973b202907e504ce8f38571887ee2 (diff) | |
| parent | ec36e0609fb97fef96e72fb76f5515b751519a61 (diff) | |
| download | zig-4c01a6553a1efef727b4f1cf7bb8dd9e53bd3cd5.tar.gz zig-4c01a6553a1efef727b4f1cf7bb8dd9e53bd3cd5.zip | |
Merge pull request #25088 from ziglang/delete-deprecated-fmt
std.fmt: delete deprecated APIs
Diffstat (limited to 'src/InternPool.zig')
| -rw-r--r-- | src/InternPool.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/InternPool.zig b/src/InternPool.zig index fd8515263c..9965497742 100644 --- a/src/InternPool.zig +++ b/src/InternPool.zig @@ -1904,11 +1904,11 @@ pub const NullTerminatedString = enum(u32) { } } - pub fn fmt(string: NullTerminatedString, ip: *const InternPool) std.fmt.Formatter(FormatData, format) { + pub fn fmt(string: NullTerminatedString, ip: *const InternPool) std.fmt.Alt(FormatData, format) { return .{ .data = .{ .string = string, .ip = ip, .id = false } }; } - pub fn fmtId(string: NullTerminatedString, ip: *const InternPool) std.fmt.Formatter(FormatData, format) { + pub fn fmtId(string: NullTerminatedString, ip: *const InternPool) std.fmt.Alt(FormatData, format) { return .{ .data = .{ .string = string, .ip = ip, .id = true } }; } |
