[PATCH 6/8] CodingGuidelines: call the conditional statement "if ()", not "if()"
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Apr 30, 2014, 21:45 UTC
- Message-ID
- <1398894312-30763-7-git-send-email-gitster@pobox.com>
- In-Reply-To
- <1398894312-30763-1-git-send-email-gitster@pobox.com>
The point immediately before it is about having SP after the control keyword. Follow it.
Signed-off-by: Junio C Hamano <gitster@pobox.com> --- Documentation/CodingGuidelines | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/CodingGuidelines b/Documentation/CodingGuidelines index 1b0cd2b..21e4272 100644 --- a/Documentation/CodingGuidelines +++ b/Documentation/CodingGuidelines @@ -184,7 +184,7 @@ For C programs: of "else if" statements, it can make sense to add braces to single line blocks. - - We try to avoid assignments inside if(). + - We try to avoid assignments inside "if ()" condition. - Try to make your code understandable. You may put comments in, but comments invariably tend to stale out when the code
-- 2.0.0-rc1-355-gd6d6511