Remove brackets to be consistent with surrounding code.
This commit is contained in:
1 parent
db7af704a6
commit
994a168364
1 file changed
+2
-3
@@ -26,11 +26,10 @@ int main(int argc, char const *argv[])
|
||||
for (int i = 0; i < 20; i++)
|
||||
{
|
||||
// Add odd numbers to the front, even numbers to the back.
|
||||
if (i % 2 == 0) {
|
||||
if (i % 2 == 0)
|
||||
d_push_front(my_deque, i);
|
||||
} else {
|
||||
else
|
||||
d_push_back(my_deque, i);
|
||||
}
|
||||
}
|
||||
|
||||
// Iterate from the start (front index) to the end (rear index) of the deque
|
||||
|
||||
Reference in new issue
Block a user