Skip to content

Commit

Permalink
fixes syntax bug in enum README.md by changing r2 to Color2
Browse files Browse the repository at this point in the history
  • Loading branch information
aadiljaleel committed May 7, 2022
1 parent 9f58fef commit 457a502
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion basic_content/enum/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ enum class Color2
YELLOW,
BLUE
};
r2 c2 = Color2::RED;
Color2 c2 = Color2::RED;
cout << static_cast<int>(c2) << endl; //必须转!
```

Expand Down
2 changes: 1 addition & 1 deletion english/basic_content/enum/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ enum class Color2
YELLOW,
BLUE
};
r2 c2 = Color2::RED;
Color2 c2 = Color2::RED;
cout << static_cast<int>(c2) << endl; //
```

Expand Down

0 comments on commit 457a502

Please sign in to comment.