Skip to content

Commit 49e36e7

Browse files
committed
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
1 parent a083657 commit 49e36e7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/src/sgml/sources.sgml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626
</para>
2727

2828
<para>
29-
Do not use C++ style comments (<literal>//</literal> comments). Strict ANSI C
30-
compilers do not accept them. For the same reason, do not use C++
31-
extensions such as declaring new variables mid-block.
29+
To maintain a consistent coding style, do not use C++ style comments
30+
(<literal>//</literal> comments). <application>pgindent</application>
31+
will replace them with <literal>/* ... */</literal>.
3232
</para>
3333

3434
<para>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy