From c7c669b0d1e2423d3df4d36f518bb144d8225240 Mon Sep 17 00:00:00 2001 From: Christian Willner <34183939+vaeng@users.noreply.github.com> Date: Sat, 14 Oct 2023 22:58:54 +0200 Subject: [PATCH] Fix(making the grade): correct "witch example" (#724) * fix(vector-arrays): correct witch example * fixup! fix(vector-arrays): correct witch example --- concepts/vector-arrays/about.md | 2 +- concepts/vector-arrays/introduction.md | 2 +- exercises/concept/making-the-grade/.docs/introduction.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/concepts/vector-arrays/about.md b/concepts/vector-arrays/about.md index 87a48c900..406ac5f73 100644 --- a/concepts/vector-arrays/about.md +++ b/concepts/vector-arrays/about.md @@ -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 witches {"Holly", "Alyssa", "Shannen"}; +std::vector witches {"Holly", "Alyssa", "Shannen"}; witches.pop_back(); // Shannen is no longer with the witches witches.emplace_back("Rose"); diff --git a/concepts/vector-arrays/introduction.md b/concepts/vector-arrays/introduction.md index 136b8c0a0..cd76a4974 100644 --- a/concepts/vector-arrays/introduction.md +++ b/concepts/vector-arrays/introduction.md @@ -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 witches {"Holly", "Alyssa", "Shannen"}; +std::vector witches {"Holly", "Alyssa", "Shannen"}; witches.pop_back(); // Shannen is no longer with the witches witches.emplace_back("Rose"); diff --git a/exercises/concept/making-the-grade/.docs/introduction.md b/exercises/concept/making-the-grade/.docs/introduction.md index 73fb8cd11..6d12ae984 100644 --- a/exercises/concept/making-the-grade/.docs/introduction.md +++ b/exercises/concept/making-the-grade/.docs/introduction.md @@ -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 witches {"Holly", "Alyssa", "Shannen"}; +std::vector witches {"Holly", "Alyssa", "Shannen"}; witches.pop_back(); // Shannen is no longer with the witches witches.emplace_back("Rose");