Skip to content

Commit 691d0dd

Browse files
committed
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 <[email protected]>
1 parent 6117a3d commit 691d0dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Documentation/CodingGuidelines

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ For C programs:
194194
of "else if" statements, it can make sense to add braces to
195195
single line blocks.
196196

197-
- We try to avoid assignments inside if().
197+
- We try to avoid assignments in the condition of an "if" statement.
198198

199199
- Try to make your code understandable. You may put comments
200200
in, but comments invariably tend to stale out when the code

0 commit comments

Comments
 (0)