From 457a50287adc0a210b2cb3dcae204ffb84352343 Mon Sep 17 00:00:00 2001 From: Aadil Jaleel Choudhry Date: Sat, 7 May 2022 16:55:35 +0500 Subject: [PATCH] fixes syntax bug in enum README.md by changing r2 to Color2 --- basic_content/enum/README.md | 2 +- english/basic_content/enum/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/basic_content/enum/README.md b/basic_content/enum/README.md index 197203f..f5ff3b2 100644 --- a/basic_content/enum/README.md +++ b/basic_content/enum/README.md @@ -84,7 +84,7 @@ enum class Color2 YELLOW, BLUE }; -r2 c2 = Color2::RED; +Color2 c2 = Color2::RED; cout << static_cast(c2) << endl; //必须转! ``` diff --git a/english/basic_content/enum/README.md b/english/basic_content/enum/README.md index 9d91a7d..5182731 100644 --- a/english/basic_content/enum/README.md +++ b/english/basic_content/enum/README.md @@ -85,7 +85,7 @@ enum class Color2 YELLOW, BLUE }; -r2 c2 = Color2::RED; +Color2 c2 = Color2::RED; cout << static_cast(c2) << endl; //! ```