]> git.ipfire.org Git - thirdparty/git.git/commitdiff
CodingGuidelines: document // comments
authorJunio C Hamano <gitster@pobox.com>
Wed, 11 Feb 2026 19:17:48 +0000 (11:17 -0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 11 Feb 2026 21:29:36 +0000 (13:29 -0800)
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>
Documentation/CodingGuidelines

index df72fe01772a180937ce589d002ecbfa63ab2393..51cb70b51569e3961bdff1f14b0a88893707ca17 100644 (file)
@@ -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.