mirror of
https://github.com/ziglang/zig.git
synced 2024-11-24 13:20:14 +00:00
std: improve std.fmt.Parser doc
This commit is contained in:
parent
44d9deef5a
commit
5b569b48e0
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user