From 76824f8d1d851f36ee56b6eca820481627c7e0b3 Mon Sep 17 00:00:00 2001 From: Alexolut Date: Thu, 26 Nov 2015 17:02:28 +0300 Subject: [PATCH] added spaces around operators. --- CppCoreGuidelines.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index ff6cdd1..ccea5d6 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -8534,9 +8534,9 @@ A programmer should know and use the basic rules for expressions. ##### Example - x=k * y + z; // OK + x = k * y + z; // OK - auto t1 = k*y; // bad: unnecessarily verbose + auto t1 = k * y; // bad: unnecessarily verbose x = t1 + z; if (0 <= x && x < max) // OK @@ -8578,7 +8578,7 @@ Note: We recommend that programmers know their precedence table for the arithmet You should know enough not to need parentheses for: - if (a<0 || a<=max) { + if (a < 0 || a <= max) { // ... }