From 49e36e7901c691fd7e80ba56465b649a211290cf Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Thu, 26 Sep 2019 10:51:39 +0200 Subject: [PATCH] doc: Update note about source code formatting Update the note about why not to use // comments, even though it's now technically supported. The note about variable declarations was dropped here because it's addressed more properly later in the chapter. Discussion: https://www.postgresql.org/message-id/flat/156924954640.1117.6309209869705522549%40wrigleys.postgresql.org --- doc/src/sgml/sources.sgml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/src/sgml/sources.sgml b/doc/src/sgml/sources.sgml index 6294312ab7..25e7763c7c 100644 --- a/doc/src/sgml/sources.sgml +++ b/doc/src/sgml/sources.sgml @@ -26,9 +26,9 @@ - Do not use C++ style comments (// comments). Strict ANSI C - compilers do not accept them. For the same reason, do not use C++ - extensions such as declaring new variables mid-block. + To maintain a consistent coding style, do not use C++ style comments + (// comments). pgindent + will replace them with /* ... */.