mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
Fix example in ES.26 section
This commit is contained in:
parent
058e1bfb41
commit
2238007823
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user