summaryrefslogtreecommitdiffstats
path: root/Documentation/CodingGuidelines
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2026-02-11 11:17:48 -0800
committerJunio C Hamano <gitster@pobox.com>2026-02-11 13:29:36 -0800
commit2f99f50f2d55fa23475b7de25ff215439c6f53ed (patch)
tree8566237e41baf4f3d18d65653ed31c95004c0e1c /Documentation/CodingGuidelines
parent9a2fb147f2c61d0cab52c883e7e26f5b7948e3ed (diff)
downloadgit-2f99f50f2d55fa23475b7de25ff215439c6f53ed.tar.gz
git-2f99f50f2d55fa23475b7de25ff215439c6f53ed.zip
CodingGuidelines: document // comments
We do not use // comments in our C code, which is implied by the description of multi-line comment rule and its examples, but is not explicitly spelled out. Spell it out. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/CodingGuidelines')
-rw-r--r--Documentation/CodingGuidelines2
1 files changed, 2 insertions, 0 deletions
diff --git a/Documentation/CodingGuidelines b/Documentation/CodingGuidelines
index df72fe0177..51cb70b515 100644
--- a/Documentation/CodingGuidelines
+++ b/Documentation/CodingGuidelines
@@ -430,6 +430,8 @@ For C programs:
*/
_("Here is a translatable string explained by the above.");
+ We do not use // comments.
+
- Double negation is often harder to understand than no negation
at all.