From 6a39167b8661ab5f2dcfd0a78a4d3800785b3f58 Mon Sep 17 00:00:00 2001 From: Dima Date: Wed, 6 Jan 2016 22:31:13 -0800 Subject: [PATCH 1/3] Declaring one name per declaration. --- CppCoreGuidelines.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 2e9766c..f440203 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -7880,9 +7880,10 @@ The *always initialize* rule is a style rule aimed to improve maintainability as Here is an example that is often considered to demonstrate the need for a more relaxed rule for initialization - widget i, j; // "widget" a type that's expensive to initialize, possibly a large POD + widget i; // "widget" a type that's expensive to initialize, possibly a large POD + widget j; - if (cond) { // bad: i and j are initialized "late" + if (cond) { // bad: i and j are initialized "late" i = f1(); j = f2(); } From 7ae316c605ee9e37d06aebf07663216254dce9c9 Mon Sep 17 00:00:00 2001 From: Dima Date: Wed, 6 Jan 2016 23:20:52 -0800 Subject: [PATCH 2/3] Minor grammar fix. --- CppCoreGuidelines.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index f440203..38c7fa3 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -8718,7 +8718,7 @@ Readability. ##### Enforcement -Flag empty statements that are not blocks and doesn't "contain" comments. +Flag empty statements that are not blocks and don't "contain" comments. ### ES.86: Avoid modifying loop control variables inside the body of raw for-loops From 2d9c0582ada1e30557afac244d59f43dc267b7a1 Mon Sep 17 00:00:00 2001 From: Dima Date: Wed, 6 Jan 2016 23:23:30 -0800 Subject: [PATCH 3/3] Another minor grammar fix. --- CppCoreGuidelines.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 38c7fa3..64026c7 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -9080,7 +9080,7 @@ Flag `const_cast`s. ##### Reason -Constructs that cannot overflow, don't, and usually runs faster: +Constructs that cannot overflow, don't, and usually run faster: ##### Example