mirror of
https://github.com/Neargye/magic_enum.git
synced 2026-01-09 23:34:23 +00:00
fix minor typo (#8)
This commit is contained in:
parent
8187796f3d
commit
f5ef718120
1 changed files with 1 additions and 1 deletions
|
|
@ -79,7 +79,7 @@ enum Color { RED = 2, BLUE = 4, GREEN = 8 };
|
|||
* Indexed access to enum value
|
||||
```cpp
|
||||
int i = 1;
|
||||
Color colo = magic_enum::enum_value<Color>(i);
|
||||
Color color = magic_enum::enum_value<Color>(i);
|
||||
// color -> Color::BLUE
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue