mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
Merge pull request #110 from dacap/fix-es26-example
Fix example in ES.26 section
This commit is contained in:
commit
137906b32e
|
@ -6936,7 +6936,7 @@ If `leak==true` the object pointer to by `p2` is leaked and the object pointed t
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
for (i=0; i<20; ++i) { /* ... */ }
|
for (i=0; i<20; ++i) { /* ... */ }
|
||||||
for (i=0; i<200; ++) { /* ... */ } // bad: i recycled
|
for (i=0; i<200; ++i) { /* ... */ } // bad: i recycled
|
||||||
}
|
}
|
||||||
|
|
||||||
**Enforcement**: Flag recycled variables.
|
**Enforcement**: Flag recycled variables.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user