mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-17 20:54:41 +03:00
Merge pull request #110 from dacap/fix-es26-example
Fix example in ES.26 section
This commit is contained in:
@@ -6936,7 +6936,7 @@ If `leak==true` the object pointer to by `p2` is leaked and the object pointed t
|
||||
{
|
||||
int 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.
|
||||
|
||||
Reference in New Issue
Block a user