Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 44aa899

Browse files
author
Sebastian Thiel
committed
A single decimal slot for percentages; Fixes #26
On top of that, I think less information can be more.
1 parent abefc91 commit 44aa899

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/interactive/app/bytevis.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ impl DisplayByteVisualization {
7474
Ok(())
7575
}
7676
fn make_percentage(f: &mut fmt::Formatter, percentage: f32) -> Result<(), fmt::Error> {
77-
write!(f, " {:>5.02}% ", percentage * 100.0)
77+
write!(f, " {:>5.01}% ", percentage * 100.0)
7878
}
7979
}
8080

0 commit comments

Comments
 (0)