From 6c55d54cacbf4413a600ea4ca087944eed6bfdf3 Mon Sep 17 00:00:00 2001 From: czertyaka Date: Sat, 13 Sep 2025 13:14:14 +0500 Subject: [PATCH] Fix pointer to const object syntax --- Presentations/7-Pointers-and-References/ptrs-and-refs.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}