Don't reuse variable name in ES.50 example (#1348)

Reusing the name 'i' violates ES.12 and distracts from the point of the example.
This commit is contained in:
Amir Livneh
2019-03-07 14:36:49 -05:00
committed by Herb Sutter
parent 8a1780e841
commit 9a703fa02b

View File

@@ -11715,9 +11715,9 @@ If the variable is actually declared `const`, the result of "casting away `const
##### Example, bad
void f(const int& i)
void f(const int& x)
{
const_cast<int&>(i) = 42; // BAD
const_cast<int&>(x) = 42; // BAD
}
static int i = 0;