We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c417ae0 commit 5ec4dc5Copy full SHA for 5ec4dc5
src/lib.rs
@@ -201,9 +201,8 @@ impl<T: AsRef<str>> Grid<T> {
201
.cells
202
.len()
203
.min((self.options.width + self.options.filling.width()) / widest_column);
204
- // Caculate approximate number of rows and columns.
+ // Caculate minimum number of rows.
205
let min_lines = div_ceil(self.cells.len(), min_columns);
206
- // let appr_num_columns = div_ceil(self.cells.len(), appr_num_lines);
207
208
// This is a potential dimension, which can definitely fit all of the cells.
209
let mut potential_dimension = self.compute_dimensions(min_lines, min_columns);
0 commit comments