Skip to content

Commit 39c1510

Browse files
jensmaurertkoeppe
authored andcommitted
[stmt] Fix cross-references for condition
1 parent dcac5ea commit 39c1510

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

source/statements.tex

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@
8383

8484
\pnum
8585
\indextext{\idxgram{condition}{s}!rules for}%
86-
The rules for \grammarterm{condition}{s} apply both to
87-
\grammarterm{selection-statement}{s} and to the \keyword{for} and \keyword{while}
88-
statements\iref{stmt.iter}.
86+
The rules for \grammarterm{condition}{s} apply both
87+
to \grammarterm{selection-statement}{s}\iref{stmt.select} and
88+
to the \keyword{for} and \keyword{while} statements\iref{stmt.iter}.
8989
A \grammarterm{condition} that is not an \grammarterm{expression} is a
9090
declaration\iref{dcl.dcl}.
9191
The \grammarterm{declarator} shall not
@@ -268,7 +268,7 @@
268268
\indextext{statement!\idxcode{if}}
269269

270270
\pnum
271-
If the condition\iref{stmt.select} yields \tcode{true} the first
271+
If the condition\iref{stmt.pre} yields \tcode{true} the first
272272
substatement is executed. If the \keyword{else} part of the selection
273273
statement is present and the condition yields \tcode{false}, the second
274274
substatement is executed. If the first substatement is reached via a
@@ -552,7 +552,7 @@
552552

553553
\pnum
554554
In the \keyword{while} statement the substatement is executed repeatedly
555-
until the value of the condition\iref{stmt.select} becomes
555+
until the value of the condition\iref{stmt.pre} becomes
556556
\tcode{false}. The test takes place before each execution of the
557557
substatement.
558558

@@ -630,7 +630,7 @@
630630
re-evaluating \grammarterm{condition}.
631631
\begin{note}
632632
Thus the first statement specifies initialization for the loop; the
633-
condition\iref{stmt.select} specifies a test, sequenced before each
633+
condition\iref{stmt.pre} specifies a test, sequenced before each
634634
iteration, such that the loop is exited when the condition becomes
635635
\tcode{false}; the expression often specifies incrementing that is
636636
sequenced after each iteration.

0 commit comments

Comments
 (0)