File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -9851,7 +9851,7 @@ The following should not pass code review:
9851
9851
void my_code()
9852
9852
{
9853
9853
// BAD: passing pointer or reference obtained from a nonlocal smart pointer
9854
- // that could be inadvertently reset somewhere inside f or it callees
9854
+ // that could be inadvertently reset somewhere inside f or its callees
9855
9855
f(*g_p);
9856
9856
9857
9857
// BAD: same reason, just passing it as a "this" pointer
@@ -12315,7 +12315,7 @@ wrong results, or memory corruption.
12315
12315
12316
12316
This rule is an obvious and well-known language rule, but can be hard to follow.
12317
12317
It takes good coding style, library support, and static analysis to eliminate violations without major overhead.
12318
- This is a major part of the discussion of [C++'s resource - and type -safety model ](#Stroustrup15).
12318
+ This is a major part of the discussion of [C++'s model for type - and resource -safety](#Stroustrup15).
12319
12319
12320
12320
**See also**:
12321
12321
You can’t perform that action at this time.
0 commit comments