diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 73a652a..a56c2b3 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -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(i) = 42; // BAD + const_cast(x) = 42; // BAD } static int i = 0;