From 8d82df75455ff29403f60a91b914ab1d0760cd23 Mon Sep 17 00:00:00 2001 From: jonas0b1011001 <43352574+jonas0b1011001@users.noreply.github.com> Date: Tue, 24 Jun 2025 02:08:21 +0200 Subject: [PATCH] Fix reference declaration text (#8754) --- .../roadmaps/cpp/content/references@uUzRKa9wGzdUwwmAg3FWr.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/roadmaps/cpp/content/references@uUzRKa9wGzdUwwmAg3FWr.md b/src/data/roadmaps/cpp/content/references@uUzRKa9wGzdUwwmAg3FWr.md index a3cf4dc80..c3d45bedb 100644 --- a/src/data/roadmaps/cpp/content/references@uUzRKa9wGzdUwwmAg3FWr.md +++ b/src/data/roadmaps/cpp/content/references@uUzRKa9wGzdUwwmAg3FWr.md @@ -2,7 +2,7 @@ A reference can be considered as a constant pointer (not to be confused with a pointer to a constant value) which always points to (references) the same object. They are declared using the `&` (ampersand) symbol. ## Declaration and Initialization -To declare a reference, use the `&` symbol followed by the variable type and the reference's name. Note that you must initialize a reference when you declare it. +To declare a reference, use the variable type followed by the `&` symbol and the reference's name. Note that you must initialize a reference when you declare it. ```cpp int var = 10; // Declare an integer variable