Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/cpp2/objects.md
Original file line number Diff line number Diff line change
Expand Up @@ -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<point2d>,
// numbers is an object of type std::vector<int>,
// defined as having the initial contents 1, 2, 3
numbers: std::vector<int> = (1, 2, 3);
numbers: std::vector = (1, 2, 3); // same, deducing the vector's type
Expand Down