From 336d201ce356ed9bf317d0c5241ae4f26c71770b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adi=20=C4=8Cau=C5=A1evi=C4=87?= <31798801+ChocolateChipKookie@users.noreply.github.com> Date: Mon, 4 Nov 2024 21:14:16 +0100 Subject: [PATCH] correct type documentation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I just started reading into cppfront so I might be wrong, but it seems to me that the template type of the vector is incorrect. Signed-off-by: Adi Čaušević <31798801+ChocolateChipKookie@users.noreply.github.com> --- docs/cpp2/objects.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/cpp2/objects.md b/docs/cpp2/objects.md index d3c746c75e..5f918ad515 100644 --- a/docs/cpp2/objects.md +++ b/docs/cpp2/objects.md @@ -14,7 +14,7 @@ Its declaration is written using the same **name `:` kind `=` value** [declarati For example: ``` cpp title="Declaring some objects" hl_lines="3 4 7-9 12 13" -// numbers is an object of type std::vector, +// numbers is an object of type std::vector, // defined as having the initial contents 1, 2, 3 numbers: std::vector = (1, 2, 3); numbers: std::vector = (1, 2, 3); // same, deducing the vector's type