Skip to content

Commit bf37e31

Browse files
committed
Update design-tic-tac-toe.cpp
1 parent 7e7ba4a commit bf37e31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

C++/design-tic-tac-toe.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class TicTacToe {
1717
1: Player 1 wins.
1818
2: Player 2 wins. */
1919
int move(int row, int col, int player) {
20-
const int i = player - 1;
20+
const auto i = player - 1;
2121
++rows_[row][i], ++cols_[col][i];
2222
if (row == col) {
2323
++diagonal_[i];

0 commit comments

Comments
 (0)