From c9b7b8aa069709766f9e5e94edf7002ee781f565 Mon Sep 17 00:00:00 2001 From: Muhammad Zahalqa Date: Sun, 27 Sep 2015 12:46:24 +0300 Subject: [PATCH] typo fix: ES.5 + ES.6 retension -> retention renesion usually applied to magnetic tapes. --- CppCoreGuidelines.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index ec31703..89f59b8 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -6411,7 +6411,7 @@ A declaration is a statement. a declaration introduces a name into a scope and m ### 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 ### ES.6: Declare names in for-statement initializers and conditions to limit scope -**Reason**: Readability. Minimize resource retension. +**Reason**: Readability. Minimize resource retention. **Example**: