Skip to content

Commit 5a74d0a

Browse files
committed
Escape braces in codeblock for range-based for
1 parent 7cc0d76 commit 5a74d0a

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
@@ -537,7 +537,7 @@
537537
is equivalent to
538538

539539
\begin{codeblock}
540-
{
540+
@\{@
541541
auto && __range = range-init;
542542
for ( auto __begin = begin-expr,
543543
__end = end-expr;
@@ -546,7 +546,7 @@
546546
@\textit{for-range-declaration}@ = *__begin;
547547
@\textit{statement}@
548548
}
549-
}
549+
@\}@
550550
\end{codeblock}
551551

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

0 commit comments

Comments
 (0)