From: Junio C Hamano Date: Wed, 30 Apr 2014 21:25:47 +0000 (-0700) Subject: CodingGuidelines: do not call the conditional statement "if()" X-Git-Tag: v2.1.0-rc0~151^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=691d0dd0a9c901286c2a0a28c30ec4d13bcd2032;p=thirdparty%2Fgit.git CodingGuidelines: do not call the conditional statement "if()" The point immediately before it is about having SP after the control keyword. Spell it out as 'an "if" statement' instead. Signed-off-by: Junio C Hamano --- diff --git a/Documentation/CodingGuidelines b/Documentation/CodingGuidelines index 0a574b204c..aeaa82451e 100644 --- a/Documentation/CodingGuidelines +++ b/Documentation/CodingGuidelines @@ -194,7 +194,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 in the condition of an "if" statement. - Try to make your code understandable. You may put comments in, but comments invariably tend to stale out when the code