From df88742f7dcac631f81f6b50cc766e468e29ed56 Mon Sep 17 00:00:00 2001 From: Bjarne Stroustrup Date: Tue, 19 Jul 2016 20:28:36 -0400 Subject: [PATCH] int->if --- CppCoreGuidelines.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 19c80f8..ae3646e 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -14591,7 +14591,7 @@ Documentation, readability, opportunity for reuse. auto x = find_if(vr.begin(),vr.end(), [&](Rec& r) { - int (r.name.size()!=n.size()) return false; // name to compare to is in n + if (r.name.size()!=n.size()) return false; // name to compare to is in n for (int i=0; i