Skip to content

Commit

Permalink
Fix(making the grade): correct "witch example" (#724)
Browse files Browse the repository at this point in the history
* fix(vector-arrays): correct witch example
* fixup! fix(vector-arrays): correct witch example
  • Loading branch information
vaeng authored Oct 14, 2023
1 parent 69468bc commit c7c669b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion concepts/vector-arrays/about.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ As a `vector` is not fixed in size, it is possible to add or remove elements.
Two common functions for that purpose are `emplace_back` and `pop_back`.

```cpp
std::array<std::string, 3> witches {"Holly", "Alyssa", "Shannen"};
std::vector<std::string> witches {"Holly", "Alyssa", "Shannen"};
witches.pop_back();
// Shannen is no longer with the witches
witches.emplace_back("Rose");
Expand Down
2 changes: 1 addition & 1 deletion concepts/vector-arrays/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ As a `vector` is not fixed in size, it is possible to add or remove elements.
Two common functions for that purpose are `emplace_back` and `pop_back`.

```cpp
std::array<std::string, 3> witches {"Holly", "Alyssa", "Shannen"};
std::vector<std::string> witches {"Holly", "Alyssa", "Shannen"};
witches.pop_back();
// Shannen is no longer with the witches
witches.emplace_back("Rose");
Expand Down
2 changes: 1 addition & 1 deletion exercises/concept/making-the-grade/.docs/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ As a `vector` is not fixed in size, it is possible to add or remove elements.
Two common functions for that purpose are `emplace_back` and `pop_back`.

```cpp
std::array<std::string, 3> witches {"Holly", "Alyssa", "Shannen"};
std::vector<std::string> witches {"Holly", "Alyssa", "Shannen"};
witches.pop_back();
// Shannen is no longer with the witches
witches.emplace_back("Rose");
Expand Down

0 comments on commit c7c669b

Please sign in to comment.