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>
Junio C Hamano committed
Feb 11, 2026 at 11:17 UTC
2f99f50f2d55fa23475b7de25ff215439c6f53ed
1 file changed
+2
Documentation/CodingGuidelines
+2
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.