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 <gitster@pobox.com>
Junio C Hamano committed
Apr 30, 2014 at 14:25 UTC
691d0dd0a9c901286c2a0a28c30ec4d13bcd2032
1 file changed
+1
-1
Documentation/CodingGuidelines
+1
-1
@@ -194,7 +194,7 @@ For C programs:
194
of "else if" statements, it can make sense to add braces to
195
single line blocks.
196
197
- - We try to avoid assignments inside if().
197
+ - We try to avoid assignments in the condition of an "if" statement.
198
199
- Try to make your code understandable. You may put comments
200
in, but comments invariably tend to stale out when the code