Skip to content

Commit

Permalink
day10: FnMut -> Fn
Browse files Browse the repository at this point in the history
  • Loading branch information
pedantic79 committed Jan 3, 2024
1 parent 662f126 commit 22b4317
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/day11.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ fn parse_data<const EXP: usize>(s: &str) -> Vec<(usize, usize)> {
grid
}

fn expand<const EXP: usize, F>(grid: &mut [(usize, usize)], seen: &[bool], mut modify: F)
fn expand<const EXP: usize, F>(grid: &mut [(usize, usize)], seen: &[bool], modify: F)
where
F: FnMut(&mut (usize, usize), usize),
F: Fn(&mut (usize, usize), usize),
{
let mut adjustment = 0;
for (row, seen) in seen.iter().enumerate() {
Expand Down

0 comments on commit 22b4317

Please sign in to comment.