Skip to content

Commit

Permalink
fix: there are 10 units, not 9
Browse files Browse the repository at this point in the history
  • Loading branch information
kartva committed Aug 23, 2024
1 parent bb91fb3 commit f488bcf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/experimental/src/duration/format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -449,10 +449,10 @@ impl<'a> FormattedDuration<'a> {
&self,
sink: &mut V,
) -> core::fmt::Result {
// We can have a maximum of 9 writeables (one FormattedUnit for each unit).
// We can have a maximum of 10 writeables (one FormattedUnit for each unit).
// In the digital case, one or more unit is represented by the FormattedDigitalDuration,
// which is a single writeable.
let mut parts_list: SmallVec<[HeterogenousToFormatter; 9]> = SmallVec::new();
let mut parts_list: SmallVec<[HeterogenousToFormatter; 10]> = SmallVec::new();

// 2. Let signDisplayed be true.
let mut sign_displayed = true;
Expand Down

0 comments on commit f488bcf

Please sign in to comment.