From f2485c56a1191b39edee6b23ece21934215f4a42 Mon Sep 17 00:00:00 2001 From: Xavier1113 Date: Sat, 5 Aug 2023 22:25:02 -0700 Subject: [PATCH] Fix variable name in example (#2116) --- CppCoreGuidelines.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index ec3200e..94876f8 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -8207,8 +8207,8 @@ Consider: cout << pb2->id(); // "D" - if (pb1->id() == "D") { // looks innocent - D* pd = static_cast(pb1); + if (pb2->id() == "D") { // looks innocent + D* pd = static_cast(pb2); // ... } // ...