Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
cameron authored Mar 21, 2023
1 parent f6301f5 commit 213b4b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ pub fn solve_grid(grid: &mut Vec<Vec<Square>>) -> SolveResult {
```
`key` is calculated by left-shifting the binary value of 1 by a value between 0 and 8, depending on the digit in the cell
```rust
let key = 1 << grid[r][c].value.chars().next().unwrap() as usize - '1' as usize;
let key = 1 << grid[r][c].value.chars().next().unwrap() as usize - '1' as usize;
```

`key` is then used to update the corresponding bit in the bit fields
Expand Down

0 comments on commit 213b4b4

Please sign in to comment.