Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
CodingGuidelines: do not call the conditional statement "if()"
author
Junio C Hamano
<gitster@pobox.com>
Wed, 30 Apr 2014 21:25:47 +0000
(14:25 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Fri, 2 May 2014 20:26:07 +0000
(13:26 -0700)
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>
Documentation/CodingGuidelines
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
6117a3d
)
diff --git
a/Documentation/CodingGuidelines
b/Documentation/CodingGuidelines
index 0a574b204c00d2a577f73bf9687dbbc491797a44..aeaa82451e8ac693386558a590a3e51db42ee210 100644
(file)
--- 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 in
side 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