Skip to content

Commit 7467a23

Browse files
authored
fix: Corrected Display unit mismatch. (#86)
1 parent d2ac87b commit 7467a23

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/display.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ pub struct Display {
7676
impl Display {
7777
/// Format using IEC (binary) units.
7878
///
79-
/// E.g., `4.2 MiB`.
79+
/// E.g., `11.8 MiB`.
8080
#[must_use]
8181
#[doc(alias = "binary")]
8282
pub fn iec(mut self) -> Self {
@@ -86,7 +86,7 @@ impl Display {
8686

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

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

109109
/// Format using a short style and SI (decimal) units.
110110
///
111-
/// E.g., `4.2M`.
111+
/// E.g., `12.3M`.
112112
#[must_use]
113113
#[doc(alias = "decimal")]
114114
pub fn si_short(mut self) -> Self {

0 commit comments

Comments
 (0)