diff --git a/Presentations/7-Pointers-and-References/ptrs-and-refs.tex b/Presentations/7-Pointers-and-References/ptrs-and-refs.tex index 47d67e0..cd7e5d5 100644 --- a/Presentations/7-Pointers-and-References/ptrs-and-refs.tex +++ b/Presentations/7-Pointers-and-References/ptrs-and-refs.tex @@ -282,7 +282,7 @@ \begin{myinplacelisting}[minted language=cpp] int a {}; int b {}; -int* |\colorbox{yellow}{const}| p = &a; +|\colorbox{yellow}{const}| int* p = &a; p = &b; // ok, p points to b *p = 1; // compilation error \end{myinplacelisting}