mirror of
https://github.com/Neargye/magic_enum.git
synced 2026-01-09 23:34:23 +00:00
update comments
This commit is contained in:
parent
aba62c4556
commit
da76bd607f
1 changed files with 2 additions and 2 deletions
|
|
@ -112,7 +112,7 @@ template <typename E, E V>
|
|||
if (name.length() > 0 && is_name_char(name.front(), true)) {
|
||||
return name;
|
||||
} else {
|
||||
return {}; // Enum value does not have name.
|
||||
return {}; // Value does not have name.
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
|
@ -134,7 +134,7 @@ template <typename E>
|
|||
if (i >= 0 && static_cast<std::size_t>(i) < names.size()) {
|
||||
return names[i];
|
||||
} else {
|
||||
return {};
|
||||
return {}; // Value out of range.
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue