i forget
This commit is contained in:
+1
-1
@@ -67,7 +67,7 @@ impl FrequencyVec {
|
|||||||
let col1 = self.longest_word().max(5);
|
let col1 = self.longest_word().max(5);
|
||||||
let col2 = digits.max(5);
|
let col2 = digits.max(5);
|
||||||
let col3 = 10;
|
let col3 = 10;
|
||||||
let end = col1 + col2 + col3.max(11) + 2;
|
let end = col1 + col2 + col3.max(11) + 1;
|
||||||
println!("{:<col1$} {:<col2$} {:<col3$}", "Word", "Count", "%_of_total");
|
println!("{:<col1$} {:<col2$} {:<col3$}", "Word", "Count", "%_of_total");
|
||||||
println!("{:-<end$}", "");
|
println!("{:-<end$}", "");
|
||||||
for (w, c) in self.0.iter() {
|
for (w, c) in self.0.iter() {
|
||||||
|
|||||||
Reference in New Issue
Block a user