Renaming.

This commit is contained in:
Gerrit Viljoen 2020-04-01 20:55:11 +02:00
parent 9f1c53b640
commit 240e17b3d3

View File

@ -127,7 +127,7 @@ impl AsciiTable {
return self.format_empty()
}
let num_cols = data.iter().map(|x| x.len()).max().unwrap();
let num_cols = data.iter().map(|row| row.len()).max().unwrap();
let data = self.square_data(data, num_cols);
let has_header = self.columns.iter().any(|(_, col)| !col.header.is_empty());
let widths = self.column_widths(&data, num_cols);