Skip to content

Commit 6c55d54

Browse files
committed
Fix pointer to const object syntax
1 parent f7f27f5 commit 6c55d54

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Presentations/7-Pointers-and-References/ptrs-and-refs.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@
282282
\begin{myinplacelisting}[minted language=cpp]
283283
int a {};
284284
int b {};
285-
int* |\colorbox{yellow}{const}| p = &a;
285+
|\colorbox{yellow}{const}| int* p = &a;
286286
p = &b; // ok, p points to b
287287
*p = 1; // compilation error
288288
\end{myinplacelisting}

0 commit comments

Comments
 (0)