fix typo in example (#53)
This commit is contained in:
parent
b877a1a556
commit
1cc3feb884
1 changed files with 2 additions and 2 deletions
|
@ -40,7 +40,7 @@ constexpr std::string_view nameof::customize::enum_name<Color>(Color value) noex
|
||||||
case Color::GREEN:
|
case Color::GREEN:
|
||||||
return {}; // Empty string for default value.
|
return {}; // Empty string for default value.
|
||||||
}
|
}
|
||||||
return {}; // Empty string for unknow value.
|
return {}; // Empty string for unknown value.
|
||||||
}
|
}
|
||||||
|
|
||||||
// Сustom definitions of names for enum.
|
// Сustom definitions of names for enum.
|
||||||
|
@ -51,7 +51,7 @@ constexpr std::string_view nameof::customize::enum_name<Numbers>(Numbers value)
|
||||||
case Numbers::One:
|
case Numbers::One:
|
||||||
return "the one";
|
return "the one";
|
||||||
default:
|
default:
|
||||||
return {}; // Empty string for default or unknow value.
|
return {}; // Empty string for default or unknown value.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue