From 9c98f9679c1ce97aaf57a0e5a4551917c8ff6531 Mon Sep 17 00:00:00 2001 From: beinhaerter <34543625+beinhaerter@users.noreply.github.com> Date: Mon, 26 Feb 2018 20:07:05 +0100 Subject: [PATCH] Copy-Paste-Typo in Comment for ES.87 sample (==0/!=0) (#1145) --- CppCoreGuidelines.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index bb4f659..653195b 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -12508,7 +12508,7 @@ The opposite condition is most easily expressed using a negation: // These all mean "if `p` is `nullptr`" if (!p) { ... } // good - if (p == 0) { ... } // redundant `!= 0`; bad: don't use `0` for pointers + if (p == 0) { ... } // redundant `== 0`; bad: don't use `0` for pointers if (p == nullptr) { ... } // redundant `== nullptr`, not recommended ##### Enforcement