Skip to content

Commit 3350363

Browse files
committed
Escape braces in codeblock for range-based for
1 parent 9304721 commit 3350363

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/statements.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@
542542
is equivalent to
543543

544544
\begin{codeblock}
545-
{
545+
@\{@
546546
auto && __range = range-init;
547547
for ( auto __begin = begin-expr,
548548
__end = end-expr;
@@ -551,7 +551,7 @@
551551
@\textit{for-range-declaration}@ = *__begin;
552552
@\textit{statement}@
553553
}
554-
}
554+
@\}@
555555
\end{codeblock}
556556

557557
where \tcode{__range}, \tcode{__begin}, and \tcode{__end} are variables defined for

0 commit comments

Comments
 (0)