mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-17 12:44:42 +03:00
Fix typos (#1549)
* R.37 : it callees -> its callees * ES.65 : a different part from the original paper
This commit is contained in:
@@ -9851,7 +9851,7 @@ The following should not pass code review:
|
|||||||
void my_code()
|
void my_code()
|
||||||
{
|
{
|
||||||
// BAD: passing pointer or reference obtained from a nonlocal smart pointer
|
// BAD: passing pointer or reference obtained from a nonlocal smart pointer
|
||||||
// that could be inadvertently reset somewhere inside f or it callees
|
// that could be inadvertently reset somewhere inside f or its callees
|
||||||
f(*g_p);
|
f(*g_p);
|
||||||
|
|
||||||
// BAD: same reason, just passing it as a "this" pointer
|
// BAD: same reason, just passing it as a "this" pointer
|
||||||
@@ -12315,7 +12315,7 @@ wrong results, or memory corruption.
|
|||||||
|
|
||||||
This rule is an obvious and well-known language rule, but can be hard to follow.
|
This rule is an obvious and well-known language rule, but can be hard to follow.
|
||||||
It takes good coding style, library support, and static analysis to eliminate violations without major overhead.
|
It takes good coding style, library support, and static analysis to eliminate violations without major overhead.
|
||||||
This is a major part of the discussion of [C++'s resource- and type-safety model](#Stroustrup15).
|
This is a major part of the discussion of [C++'s model for type- and resource-safety](#Stroustrup15).
|
||||||
|
|
||||||
**See also**:
|
**See also**:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user