diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index dd69470..feee6bc 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -683,7 +683,7 @@ We could check earlier and improve the code: void increment2(array_view p) { - for (int x : p) ++x; + for (int& x : p) ++x; } void use2(int m)