mirror of
https://github.com/LeopoldArkham/humansize
synced 2024-11-26 05:30:20 +00:00
README typo in import
Not sure how this ended up in there (too much vim?) and not 100% confident my fix is correct, I'm doing this as a drive-by from the GitHub web UI, but the original didn't sound right.
This commit is contained in:
parent
caa4cc5260
commit
36352482a3
1 changed files with 2 additions and 2 deletions
|
@ -81,7 +81,7 @@ Enabling this feature makes two methods available:
|
||||||
|
|
||||||
To use it, bring the FormatSize trait into scope and call its method on an integer type:
|
To use it, bring the FormatSize trait into scope and call its method on an integer type:
|
||||||
```ignore
|
```ignore
|
||||||
use humansize::{FormatSize, FormatSizeI DECIMAL};
|
use humansize::{FormatSize, DECIMAL};
|
||||||
|
|
||||||
assert_eq!(1_000_000u64.format_size(DECIMAL), "1 MB");
|
assert_eq!(1_000_000u64.format_size(DECIMAL), "1 MB");
|
||||||
assert_eq!((-1_000_000).format_size_i(DECIMAL), "-1 MB");
|
assert_eq!((-1_000_000).format_size_i(DECIMAL), "-1 MB");
|
||||||
|
@ -132,4 +132,4 @@ This project is licensed under either of
|
||||||
|
|
||||||
Unless you explicitly state otherwise, any contribution intentionally submitted
|
Unless you explicitly state otherwise, any contribution intentionally submitted
|
||||||
for inclusion in humansize by you, as defined in the Apache-2.0 license, shall be
|
for inclusion in humansize by you, as defined in the Apache-2.0 license, shall be
|
||||||
dual licensed as above, without any additional terms or conditions.
|
dual licensed as above, without any additional terms or conditions.
|
||||||
|
|
Loading…
Reference in a new issue