From 35db3bf1234265ad1fa3377d0f68c06704afc8cd Mon Sep 17 00:00:00 2001 From: Amir Livneh Date: Sat, 2 Mar 2019 15:20:22 -0500 Subject: [PATCH] Fix typo in ES.87 (#1361) --- CppCoreGuidelines.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 179718c..08c5cb3 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -12889,7 +12889,7 @@ whereas `if (p != nullptr)` would be a long-winded workaround. This rule is especially useful when a declaration is used as a condition - if (auto pc = dynamic_cast(ps)) { ... } // execute is ps points to a kind of Circle, good + if (auto pc = dynamic_cast(ps)) { ... } // execute if ps points to a kind of Circle, good if (auto pc = dynamic_cast(ps); pc != nullptr) { ... } // not recommended