Skip to content

Commit

Permalink
Fix enum flags example in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
SF-Zhou authored Sep 21, 2023
1 parent 8aeb677 commit 374352b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ Header-only C++17 library provides nameof macros and functions to simply obtain
// Enum flags variable to string.
NAMEOF_ENUM_FLAG(Color::GREEN | Color::BLUE) -> "GREEN|BLUE"
nameof::nameof_enum_flag<Color::GREEN>() -> "GREEN|BLUE"
nameof::nameof_enum_flag<Color::GREEN | Color::BLUE>() -> "GREEN|BLUE"
// Obtains name of enum variable or default value if enum variable out of range.
NAMEOF_ENUM_OR(Color::GREEN) -> "GREEN"
Expand Down

0 comments on commit 374352b

Please sign in to comment.