Skip to content

Commit f72c304

Browse files
authored
Rollup merge of rust-lang#74523 - sollyucko:patch-1, r=Mark-Simulacrum
Improve documentation for `core::fmt` internals The public interface of `core::fmt` is well-documented, but the internals have very minimal documentation.
2 parents 247ee15 + a462e7c commit f72c304

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/libcore/fmt/rt/v1.rs

+4
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,13 @@ pub enum Alignment {
3333
Unknown,
3434
}
3535

36+
/// Used by [width](https://doc.rust-lang.org/std/fmt/#width) and [precision](https://doc.rust-lang.org/std/fmt/#precision) specifiers.
3637
#[derive(Copy, Clone)]
3738
pub enum Count {
39+
/// Specified with a literal number, stores the value
3840
Is(usize),
41+
/// Specified using `$` and `*` syntaxes, stores the index into `args`
3942
Param(usize),
43+
/// Not specified
4044
Implied,
4145
}

0 commit comments

Comments
 (0)