Skip to content

Commit 02d79a0

Browse files
authored
Fix syntax error in "Postfix Increment and Decrement Operators"
1 parent d68011f commit 02d79a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/cpp/postfix-increment-and-decrement-operators-increment-and-decrement.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ int main() {
5353
Postincrement and postdecrement operations on enumerated types are not supported:
5454

5555
```cpp
56-
enum Compass { North, South, East, West );
56+
enum Compass { North, South, East, West };
5757
Compass myCompass;
58-
for( myCompass = North; myCompass != West; myCompass++ ) // Error
58+
for( myCompass = North; myCompass != West; myCompass++ ); // Error
5959
```
6060
6161
## See also

0 commit comments

Comments
 (0)