mirror of
https://github.com/Neargye/magic_enum.git
synced 2026-01-09 23:34:23 +00:00
Fix typo (#72)
This commit is contained in:
parent
9830d319c4
commit
58833fa067
1 changed files with 1 additions and 1 deletions
|
|
@ -75,7 +75,7 @@ constexpr optional<E> enum_cast(string_view value, BinaryPredicate p) noexcept(i
|
|||
```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