diff --git a/src/apr.rs b/src/apr.rs index 8748faa..750f799 100644 --- a/src/apr.rs +++ b/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. } }