aboutsummaryrefslogtreecommitdiff
path: root/src/codegen/c/Type.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2025-08-30 14:50:33 -0700
committerAndrew Kelley <andrew@ziglang.org>2025-08-31 12:49:18 -0700
commit150169f1e0cf08d4b76fed81fc205a63177b6e01 (patch)
treec39318b34c361a9a5a8ddaa1aae80cba1fe27f0c /src/codegen/c/Type.zig
parentab99dd9c5d22a3d927453081654b1f75b2521b48 (diff)
downloadzig-150169f1e0cf08d4b76fed81fc205a63177b6e01.tar.gz
zig-150169f1e0cf08d4b76fed81fc205a63177b6e01.zip
std.fmt: delete deprecated APIs
std.fmt.Formatter -> std.fmt.Alt std.fmt.format -> std.Io.Writer.print
Diffstat (limited to 'src/codegen/c/Type.zig')
-rw-r--r--src/codegen/c/Type.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codegen/c/Type.zig b/src/codegen/c/Type.zig
index d270e1dc9c..fa4db36a0c 100644
--- a/src/codegen/c/Type.zig
+++ b/src/codegen/c/Type.zig
@@ -989,7 +989,7 @@ pub const Pool = struct {
else
try writer.print("f{d}", .{@intFromEnum(data.string.index)});
}
- pub fn fmt(str: String, pool: *const Pool) std.fmt.Formatter(FormatData, format) {
+ pub fn fmt(str: String, pool: *const Pool) std.fmt.Alt(FormatData, format) {
return .{ .data = .{ .string = str, .pool = pool } };
}