diff --git a/concepts/vector-arrays/about.md b/concepts/vector-arrays/about.md index 406ac5f73..f0c98dea8 100644 --- a/concepts/vector-arrays/about.md +++ b/concepts/vector-arrays/about.md @@ -12,10 +12,10 @@ Arrays also need a size. Look at these examples to see the two container types' initializations: ```cpp -#include +#include #include -// std::array variable_name {list of elements} +// std::array variable_name {list of elements} std::array indie_rock {"yeah", "yeah", "yeah"}; // indie_rock contains the elements "yeah" three times ``` @@ -24,10 +24,10 @@ Vectors usually need more space, as they allocate memory for further growth. You do not need to specify a size: ```cpp -#include +#include -// std::vector variable_name {list of elements} -std::vector countdown {3, 2, 1}; +// std::vector variable_name {list of elements} +std::vector countdown {3, 2, 1}; // my_vector contains the elements 3, 2 and 1 ``` diff --git a/concepts/vector-arrays/introduction.md b/concepts/vector-arrays/introduction.md index ca28b607c..b81c469cc 100644 --- a/concepts/vector-arrays/introduction.md +++ b/concepts/vector-arrays/introduction.md @@ -15,7 +15,7 @@ Look at these examples to see the two container types' initializations: #include #include -// std::array variable_name {list of elements} +// std::array variable_name {list of elements} std::array indie_rock {"yeah", "yeah", "yeah"}; // indie_rock contains the elements "yeah" three times ```