Skip to content

Commit

Permalink
fix parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
felipensp committed Jan 11, 2025
1 parent 7985952 commit b47e69f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 2024/12/jamestomasino.v
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ fn is_valid_move(row int, col int, max_y int, max_x int) bool {
return row >= 0 && row < max_y && col >= 0 && col < max_x
}

fn check_cell(mut region &Region, mut visited [][]bool, grid []string, row int, col int, max_y int, max_x int) {
fn check_cell(mut region Region, mut visited [][]bool, grid []string, row int, col int, max_y int, max_x int) {
directions := [[0, 1], [0, -1], [1, 0], [-1, 0]]
for dir in directions {
new_row := row + dir[0]
Expand Down

0 comments on commit b47e69f

Please sign in to comment.