Skip to content

Commit

Permalink
Rollup merge of #74523 - sollyucko:patch-1, r=Mark-Simulacrum
Browse files Browse the repository at this point in the history
Improve documentation for `core::fmt` internals

The public interface of `core::fmt` is well-documented, but the internals have very minimal documentation.
  • Loading branch information
Manishearth committed Jul 20, 2020
2 parents 42f6ed4 + a462e7c commit e762f97
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/libcore/fmt/rt/v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,13 @@ pub enum Alignment {
Unknown,
}

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

0 comments on commit e762f97

Please sign in to comment.