Fix typo: Correct argument name in enum namespace example. (#81)

Signed-off-by: Andreas Hofmann <mail@andreas-hofmann.org>
This commit is contained in:
Andreas Hofmann
2020-05-20 01:29:39 +02:00
committed by GitHub
parent 187b059420
commit 352a87a284
2 changed files with 2 additions and 2 deletions

View File

@@ -329,7 +329,7 @@ After:
```c++
enum class rgba_color_channel { red, green, blue, alpha };
std::string_view to_string(rgba_color_channel channel) {
std::string_view to_string(rgba_color_channel my_channel) {
switch (my_channel) {
using enum rgba_color_channel;
case red: return "red";

View File

@@ -422,7 +422,7 @@ After:
```c++
enum class rgba_color_channel { red, green, blue, alpha };
std::string_view to_string(rgba_color_channel channel) {
std::string_view to_string(rgba_color_channel my_channel) {
switch (my_channel) {
using enum rgba_color_channel;
case red: return "red";