Skip to content

Commit 1a87372

Browse files
correct type documentation (#1333)
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ć <[email protected]>
1 parent bbee890 commit 1a87372

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/cpp2/objects.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Its declaration is written using the same **name `:` kind `=` value** [declarati
1414
For example:
1515

1616
``` cpp title="Declaring some objects" hl_lines="3 4 7-9 12 13"
17-
// numbers is an object of type std::vector<point2d>,
17+
// numbers is an object of type std::vector<int>,
1818
// defined as having the initial contents 1, 2, 3
1919
numbers: std::vector<int> = (1, 2, 3);
2020
numbers: std::vector = (1, 2, 3); // same, deducing the vector's type

0 commit comments

Comments
 (0)