1
0
Fork 0
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:
Malcolm Parsons 2021-02-09 17:33:32 +00:00 committed by GitHub
parent 9830d319c4
commit 58833fa067
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
}
```