Skip to content

0.15.1 - Format Methods No Longer Have Format Strings or Options#33

Merged
ikskuh merged 1 commit intoziglibs:masterfrom
theMagicalKarp:fix-format
Oct 29, 2025
Merged

0.15.1 - Format Methods No Longer Have Format Strings or Options#33
ikskuh merged 1 commit intoziglibs:masterfrom
theMagicalKarp:fix-format

Conversation

@theMagicalKarp
Copy link
Contributor

What

As part of the transition to zig 0.15.1, the language changed the function signature for format.

https://ziglang.org/download/0.15.1/release-notes.html#Format-Methods-No-Longer-Have-Format-Strings-or-Options

pub fn format(
    this: @This(),
    comptime format_string: []const u8,
    options: std.fmt.FormatOptions,
    writer: anytype,
) !void { ... }

⬇️

pub fn format(this: @This(), writer: *std.Io.Writer) std.Io.Writer.Error!void { ... }

@ikskuh ikskuh merged commit 6cbbe00 into ziglibs:master Oct 29, 2025
@theMagicalKarp
Copy link
Contributor Author

Thanks ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants