Skip to content

Commit 05a2d35

Browse files
committed
fixup: various comments
1 parent 0a27a71 commit 05a2d35

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

source/declarations.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7049,7 +7049,7 @@
70497049

70507050
\pnum
70517051
If a structured binding declaration appears as a \grammarterm{condition},
7052-
the decision variable\iref{stmt.pre} of the condition is \tcode{e}.
7052+
the decision variable\iref{stmt.pre} of the condition is \exposid{e}.
70537053

70547054
\pnum
70557055
If the \grammarterm{initializer} refers to
@@ -7115,7 +7115,7 @@
71157115
that refers to the object bound to $\tcode{r}_i$;
71167116
the referenced type is $\tcode{T}_i$.
71177117
The initialization of \tcode{e} and
7118-
any conversion of \tcode{e} considered as a decision variable\iref{stmt.pre}
7118+
any conversion of \exposid{e} considered as a decision variable\iref{stmt.pre}
71197119
is sequenced before the initialization of any $\tcode{r}_i$.
71207120
The initialization of $\tcode{r}_i$ is sequenced before
71217121
the initialization of $\tcode{r}_j$ if $i < j$.

source/statements.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
\begin{bnf}
3434
\nontermdef{condition}\br
3535
expression\br
36-
\opt{attribute-specifier-seq} decl-specifier-seq declarator brace-or-equal-initializer
36+
\opt{attribute-specifier-seq} decl-specifier-seq declarator brace-or-equal-initializer\br
3737
structured-binding-declaration initializer
3838
\end{bnf}
3939

@@ -100,14 +100,14 @@
100100
the type of the identifier being declared is deduced from the initializer as described in~\ref{dcl.spec.auto}.
101101

102102
\pnum
103-
The \defn{decision variable} of a \grammarterm{condition}
103+
The \defnadj{decision}{variable} of a \grammarterm{condition}
104104
that is neither an \grammarterm{expression} nor a structured binding declaration
105105
is the declared variable.
106106
The decision variable of a \grammarterm{condition}
107107
that is a structured binding declaration is specified in \ref{dcl.struct.bind}.
108108

109109
\pnum
110-
The value of a \grammarterm{condition} that not an \grammarterm{expression}
110+
The value of a \grammarterm{condition} that is not an \grammarterm{expression}
111111
in a statement other than a \keyword{switch} statement is the value of the
112112
decision variable
113113
contextually converted to \tcode{bool}\iref{conv}.

0 commit comments

Comments
 (0)