update at ES.72 rule

add code sample for (Prefer a `for`-statement to a `while`-statement when there is an obvious loop variable) rule
This commit is contained in:
Ameen Ali 2015-09-22 21:45:51 +03:00
parent 2e5b16736b
commit f80fa9f5fa

View File

@ -7192,7 +7192,15 @@ This will copy each elements of `vs` into `s`. Better
**Example**:
???
for (int i = 0; i < vec.size(); i++) {
// do work
}
int i = 0;
while (i < vec.size()) {
// do work
i++;
}
**Enforcement**: ???