mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-17 12:44:42 +03:00
Fix comment stating incorrect assigned variable (#1342)
This commit is contained in:
committed by
Sergey Zubkov
parent
8c141fcfa5
commit
a95daa781e
@@ -10374,7 +10374,7 @@ Reuse of a member name as a local variable can also be a problem:
|
|||||||
if (x) {
|
if (x) {
|
||||||
int m = 9;
|
int m = 9;
|
||||||
// ...
|
// ...
|
||||||
m = 99; // assign to member
|
m = 99; // assign to local variable
|
||||||
// ...
|
// ...
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user