Fix ES.102 odd loop condition in example

pull/1201/head
mbuchner 8 years ago
parent 1e4dba2c0b
commit 53c0bd2bd1

@ -12673,7 +12673,7 @@ This makes surprises (and bugs) inevitable.
for (int i = 0; i < 10; ++i) a[i] = i;
vector<int> v(10);
// compares signed to unsigned; some compilers warn, but we should not
for (gsl::index i = 0; v.size() < 10; ++i) v[i] = i;
for (gsl::index i = 0; i < v.size(); ++i) v[i] = i;
int a2[-2]; // error: negative size

Loading…
Cancel
Save