fixes syntax bug in enum README.md by changing r2 to Color2

This commit is contained in:
Aadil Jaleel Choudhry
2022-05-07 16:55:35 +05:00
parent 9f58fef2ce
commit 457a50287a
2 changed files with 2 additions and 2 deletions

View File

@@ -84,7 +84,7 @@ enum class Color2
YELLOW,
BLUE
};
r2 c2 = Color2::RED;
Color2 c2 = Color2::RED;
cout << static_cast<int>(c2) << endl; //必须转!
```