From 31bb3d1b01759d3ca9e47e35ea77377979e66613 Mon Sep 17 00:00:00 2001 From: Sergey Date: Fri, 27 Jan 2023 03:05:31 +0500 Subject: [PATCH] F.10: small code fix --- CppCoreGuidelines.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 230a297..c418cc1 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -2908,7 +2908,7 @@ There is a useful function lurking here (case insensitive string comparison), as } auto x = find_if(vr.begin(), vr.end(), - [&](Rec& r) { compare_insensitive(r.name, n); } + [&](Rec& r) { return compare_insensitive(r.name, n); } ); Or maybe (if you prefer to avoid the implicit name binding to n):