F.10: small code fix

This commit is contained in:
Sergey
2023-01-27 03:05:31 +05:00
committed by GitHub
parent 6d912e8b51
commit 31bb3d1b01

View File

@@ -2908,7 +2908,7 @@ There is a useful function lurking here (case insensitive string comparison), as
} }
auto x = find_if(vr.begin(), vr.end(), 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): Or maybe (if you prefer to avoid the implicit name binding to n):