exercism / cpp

Exercism exercises in C++.
https://exercism.org/tracks/cpp
MIT License
254 stars 207 forks source link

making-the-grades: A typo in example #721

Closed nozomirin closed 10 months ago

nozomirin commented 11 months ago

In introduction, there is an example of vector modifiers. The container here should be vector instead of array.

std::array<std::string, 3> witches {"Holly", "Alyssa", "Shannen"}; witches.pop_back(); // Shannen is no longer with the witches witches.emplace_back("Rose"); // Rose has joined the team

github-actions[bot] commented 11 months ago

Hello. Thanks for opening an issue on Exercism. We are currently in a phase of our journey where we have paused community contributions to allow us to take a breather and redesign our community model. You can learn more in this blog post. As such, all issues and PRs in this repository are being automatically closed.

That doesn't mean we're not interested in your ideas, or that if you're stuck on something we don't want to help. The best place to discuss things is with our community on the Exercism Community Forum. You can use [this link](https://forum.exercism.org/new-topic?title=making-the-grades:%20A%20typo%20in%20example&body=In%20introduction,%20there%20is%20an%20example%20of%20vector%20modifiers.%0D%0AThe%20container%20here%20should%20be%20vector%20instead%20of%20array.%0D%0A%0D%0A%60std::array%3Cstd::string,%203%3E%20witches%20%7B%22Holly%22,%20%22Alyssa%22,%20%22Shannen%22%7D;%0D%0Awitches.pop_back();%0D%0A//%20Shannen%20is%20no%20longer%20with%20the%20witches%0D%0Awitches.emplace_back(%22Rose%22);%0D%0A//%20Rose%20has%20joined%20the%20team%60&category=cpp) to copy this into a new topic there.


Note: If this issue has been pre-approved, please link back to this issue on the forum thread and a maintainer or staff member will reopen it.

siebenschlaefer commented 11 months ago

Good catch!