fixes syntax bug in enum README.md by changing r2 to Color2
This commit is contained in:
@@ -84,7 +84,7 @@ enum class Color2
|
||||
YELLOW,
|
||||
BLUE
|
||||
};
|
||||
r2 c2 = Color2::RED;
|
||||
Color2 c2 = Color2::RED;
|
||||
cout << static_cast<int>(c2) << endl; //必须转!
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user