From 60e19d76a4cf614259d177b584580e592eadca3f Mon Sep 17 00:00:00 2001 From: hsutter Date: Thu, 6 Sep 2018 11:51:59 -0700 Subject: [PATCH] Closes #1254 --- CppCoreGuidelines.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index b65deb2..513d8d0 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -599,7 +599,7 @@ Now, there is no explicit mention of the iteration mechanism, and the loop opera for (auto& x : v) { /* modify x */ } For more details about for-statements, see [ES.71](#Res-for-range). -Sometimes better still, use a named algorithm: +Sometimes better still, use a named algorithm. This example uses the `for_each` from the Ranges TS because it directly expresses the intent: for_each(v, [](int x) { /* do something with the value of x */ }); for_each(par, v, [](int x) { /* do something with the value of x */ });