Skip to content

Commit 3834c82

Browse files
committed
Update game-of-life.cpp
1 parent ef0b346 commit 3834c82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

C++/game-of-life.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Solution {
2020
// Any live cell with two live neighbors.
2121
// Any dead cell with exactly three live neighbors lives.
2222
if ((count == 4 && board[i][j]) || count == 3) {
23-
board[i][j] |= 2; // Make as live.
23+
board[i][j] |= 2; // Mark as live.
2424
}
2525
}
2626
}

0 commit comments

Comments
 (0)