mirror of
https://github.com/LeopoldArkham/humansize
synced 2024-11-22 19:53:08 +00:00
Fix typo in sample code
This commit is contained in:
parent
caa4cc5260
commit
a0ecbe07e1
1 changed files with 1 additions and 1 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:
|
||||
```ignore
|
||||
use humansize::{FormatSize, FormatSizeI DECIMAL};
|
||||
use humansize::{FormatSize, FormatSizeI, DECIMAL};
|
||||
|
||||
assert_eq!(1_000_000u64.format_size(DECIMAL), "1 MB");
|
||||
assert_eq!((-1_000_000).format_size_i(DECIMAL), "-1 MB");
|
||||
|
|
Loading…
Reference in a new issue