Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
DESKTOP-U434MT0\hiro committed Jan 22, 2025
1 parent 208cfc9 commit 64514c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/structs/cells.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ impl Cells {
pub fn get_highest_column_and_row(&self) -> (u32, u32) {
self.map
.keys()
.fold((0, 0), |(row_max, col_max), &(row, col)| {
(row.max(row_max), col.max(col_max))
.fold((0, 0), |(col_max, row_max), &(col, row)| {
(col.max(col_max), row.max(row_max))
})
}

Expand Down

0 comments on commit 64514c5

Please sign in to comment.