std: improve std.fmt.Parser doc

This commit is contained in:
Andrew Barchuk 2024-11-15 21:29:53 +01:00
parent 44d9deef5a
commit 5b569b48e0
No known key found for this signature in database
GPG Key ID: 548706C0A2EEA361

View File

@ -310,8 +310,10 @@ pub const Specifier = union(enum) {
named: []const u8,
};
/// Intended for parsing std.fmt format strings without having to replicate the
/// standard library behavior.
/// A stream based parser for format strings.
///
/// Allows to implement formatters compatible with std.fmt without replicating
/// the standard library behavior.
pub const Parser = struct {
pos: usize = 0,
iter: std.unicode.Utf8Iterator,