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:
parent
bb32605276
commit
caa2f9e6ef
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue