mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-18 13:14:40 +03:00
ES.42: index in an example was not declared (#1403)
This commit is contained in:
committed by
Sergey Zubkov
parent
1f6042f66c
commit
9f5a67fda7
@@ -11376,6 +11376,7 @@ Use a range-`for`:
|
|||||||
void f3()
|
void f3()
|
||||||
{
|
{
|
||||||
int arr[COUNT];
|
int arr[COUNT];
|
||||||
|
int i = 0;
|
||||||
for (auto& e : arr)
|
for (auto& e : arr)
|
||||||
e = i++;
|
e = i++;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user