summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2014-04-30 14:25:47 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2014-05-02 13:26:07 -0700
commit691d0dd0a9c901286c2a0a28c30ec4d13bcd2032 (patch)
treea266bd4edc39786ff42854a5118d5e27f1f43cf9 /Documentation
parentCodingGuidelines: give an example for shell function preamble (diff)
downloadtgif-691d0dd0a9c901286c2a0a28c30ec4d13bcd2032.tar.xz
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>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/CodingGuidelines2
1 files changed, 1 insertions, 1 deletions
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