mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
Merge pull request #166 from tryfinally/patch-1
typo fix: ES.5 + ES.6 retension -> retention
This commit is contained in:
commit
1b944fade2
|
@ -6411,7 +6411,7 @@ A declaration is a statement. a declaration introduces a name into a scope and m
|
|||
<a name="Res-scope"></a>
|
||||
### ES.5: Keep scopes small
|
||||
|
||||
**Reason**: Readability. Minimize resource retension. Avoid accidental misuse of value.
|
||||
**Reason**: Readability. Minimize resource retention. Avoid accidental misuse of value.
|
||||
|
||||
**Alternative formulation**: Don't declare a name in an unnecessarily large scope.
|
||||
|
||||
|
@ -6473,7 +6473,7 @@ I am assuming that `Record` is large and doesn't have a good move operation so t
|
|||
<a name="Res-cond"></a>
|
||||
### ES.6: Declare names in for-statement initializers and conditions to limit scope
|
||||
|
||||
**Reason**: Readability. Minimize resource retension.
|
||||
**Reason**: Readability. Minimize resource retention.
|
||||
|
||||
**Example**:
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user