Fix typo in sample code

This commit is contained in:
Wilfred Hughes 2023-08-12 22:27:02 -07:00 committed by GitHub
parent caa4cc5260
commit a0ecbe07e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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");