Skip to content

Commit dd30263

Browse files
authored
Update available-captures-for-rook.cpp
1 parent f896522 commit dd30263

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

C++/available-captures-for-rook.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class Solution {
1717
}
1818

1919
int result = 0;
20-
for(const auto& d : directions) {
20+
for (const auto& d : directions) {
2121
int nr, nc;
2222
tie(nr, nc) = make_pair(r + d.first, c + d.second);
2323
while (0 <= nr && nr < 8 && 0 <= nc && nc < 8) {

0 commit comments

Comments
 (0)