Skip to content

Fix: Corrected Display unit mismatch. #86

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 13, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ pub struct Display {
impl Display {
/// Format using IEC (binary) units.
///
/// E.g., `4.2 MiB`.
/// E.g., `11.8 MiB`.
#[must_use]
#[doc(alias = "binary")]
pub fn iec(mut self) -> Self {
Expand All @@ -86,7 +86,7 @@ impl Display {

/// Format using a short style and IEC (binary) units.
///
/// E.g., `4.2 MB`.
/// E.g., `11.8M`.
///
/// Designed to produce output compatible with `sort -h`.
#[must_use]
Expand All @@ -98,7 +98,7 @@ impl Display {

/// Format using SI (decimal) units.
///
/// E.g., `4.2M`.
/// E.g., `12.3 MB`.
#[must_use]
#[doc(alias = "decimal")]
pub fn si(mut self) -> Self {
Expand All @@ -108,7 +108,7 @@ impl Display {

/// Format using a short style and SI (decimal) units.
///
/// E.g., `4.2M`.
/// E.g., `12.3M`.
#[must_use]
#[doc(alias = "decimal")]
pub fn si_short(mut self) -> Self {
Expand Down
Loading