mirror of
https://github.com/git/git.git
synced 2024-10-31 06:17:56 +01:00
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>
This commit is contained in:
parent
6117a3d494
commit
691d0dd0a9
1 changed files with 1 additions and 1 deletions
|
@ -194,7 +194,7 @@ For C programs:
|
||||||
of "else if" statements, it can make sense to add braces to
|
of "else if" statements, it can make sense to add braces to
|
||||||
single line blocks.
|
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
|
- Try to make your code understandable. You may put comments
|
||||||
in, but comments invariably tend to stale out when the code
|
in, but comments invariably tend to stale out when the code
|
||||||
|
|
Loading…
Reference in a new issue