Browse Source

Renamed argument from col to clr

master
iamsosmart19 4 years ago
parent
commit
ec31d8976a
  1. 4
      src/apr.rs

4
src/apr.rs

@ -70,9 +70,9 @@ impl Apr {
})
}
pub fn set_colour(&mut self, r: usize, c: usize, col: u8) {
pub fn set_colour(&mut self, r: usize, c: usize, clr: u8) {
//You should only modify self.board through this method.
self.board.board[r][c] = col; //Making a getter for self.board would sadly break borrowing in the same way that closest_square_coords does.
self.board.board[r][c] = clr; //Making a getter for self.board would sadly break borrowing in the same way that closest_square_coords does.
self.should_update_grid = true; //Similar solutions apply.
}
}

Loading…
Cancel
Save