Skip to content

Commit

Permalink
formatter[duration]: Rename show_leading_units_if_zero to leading_zer…
Browse files Browse the repository at this point in the history
…oes in docs
  • Loading branch information
bim9262 committed Sep 7, 2024
1 parent 0a4e39f commit e43f747
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/formatting.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,15 @@
//! ## `duration`/`dur` - Format durations
//!
//! Argument | Description |Default value
//! -----------------------------|--------------------------------------------------------------------------------------------------|------------------------------------------------------
//! `hms` | Should the format be hours:minutes:seconds.milliseconds | `false`
//! `max_unit` | The largest unit to display the duration with (see below for the list of all possible units) | hms ? `h` : `y`
//! `min_unit` | The smallest unit to display the duration with (see below for the list of all possible units) | `s`
//! `units` | The number of units to display | min(# of units between `max_unit` and `min_unit``, 2)
//! `round_up` | Round up to the nearest minimum displayed unit | `true`
//! `unit_space` | Should there be a space between the value and unit symbol (not allowed when `hms:true`) | `false`
//! `pad_with` | The character that is used to pad the numbers | hms ? `0` : ` ` (a space)
//! `show_leading_units_if_zero` | If fewer than `units` are non-zero should leading numbers that have a value of zero be shown | `true`
//! -----------------|--------------------------------------------------------------------------------------------------|------------------------------------------------------
//! `hms` | Should the format be hours:minutes:seconds.milliseconds | `false`
//! `max_unit` | The largest unit to display the duration with (see below for the list of all possible units) | hms ? `h` : `y`
//! `min_unit` | The smallest unit to display the duration with (see below for the list of all possible units) | `s`
//! `units` | The number of units to display | min(# of units between `max_unit` and `min_unit``, 2)
//! `round_up` | Round up to the nearest minimum displayed unit | `true`
//! `unit_space` | Should there be a space between the value and unit symbol (not allowed when `hms:true`) | `false`
//! `pad_with` | The character that is used to pad the numbers | hms ? `0` : ` ` (a space)
//! `leading_zeroes` | If fewer than `units` are non-zero should leading numbers that have a value of zero be shown | `true`
//!
//! Unit | Description
//! -----|------------
Expand Down

0 comments on commit e43f747

Please sign in to comment.