Skip to content

Commit 03739f2

Browse files
committed
doc: clarify syntax notation, particularly parentheses
Also move TCL syntax to the PL/tcl section. Reported-by: davs2rt@gmail.com Discussion: https://postgr.es/m/164308146320.12460.3590769444508751574@wrigleys.postgresql.org Backpatch-through: 10
1 parent 7792c0c commit 03739f2

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

doc/src/sgml/notation.sgml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
<para>
77
The following conventions are used in the synopsis of a command:
88
brackets (<literal>[</literal> and <literal>]</literal>) indicate
9-
optional parts. (In the synopsis of a Tcl command, question marks
10-
(<literal>?</>) are used instead, as is usual in Tcl.) Braces
9+
optional parts. Braces
1110
(<literal>{</literal> and <literal>}</literal>) and vertical lines
1211
(<literal>|</literal>) indicate that you must choose one
1312
alternative. Dots (<literal>...</>) mean that the preceding element
14-
can be repeated.
13+
can be repeated. All other symbols, including parentheses, should be
14+
taken literally.
1515
</para>
1616

1717
<para>

doc/src/sgml/pltcl.sgml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,8 +307,10 @@ $$ LANGUAGE pltcl;
307307
<title>Database Access from PL/Tcl</title>
308308

309309
<para>
310-
The following commands are available to access the database from
311-
the body of a PL/Tcl function:
310+
In this section, we follow the usual Tcl convention of using question
311+
marks, rather than brackets, to indicate an optional element in a
312+
syntax synopsis. The following commands are available to access
313+
the database from the body of a PL/Tcl function:
312314

313315
<variablelist>
314316

0 commit comments

Comments
 (0)