1
0
Fork 0
mirror of https://github.com/Neargye/magic_enum.git synced 2026-01-09 23:34:23 +00:00

Fix typo in readme (#61)

This commit is contained in:
tim-lyon-arup 2020-10-22 13:48:26 +01:00 committed by GitHub
parent bb32605276
commit caa2f9e6ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -86,7 +86,7 @@ enum class Color { RED = 2, BLUE = 4, GREEN = 8 };
```cpp
int color_integer = 2;
auto color = magic_enum::enum_cast<Color>(color_integer);
if (colo.has_value()) {
if (color.has_value()) {
// color.value() -> Color::RED
}
```