From ec31d8976a38e0f31582bb82b8ce3871db0a45fb Mon Sep 17 00:00:00 2001 From: iamsosmart19 Date: Fri, 31 Dec 2021 18:12:53 +1100 Subject: [PATCH] Renamed argument from col to clr --- src/apr.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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. } }