From 74a94f4812f991881c9cfd0dd1f29a93e97a5c7f Mon Sep 17 00:00:00 2001 From: Prin <98200861+Prin-S@users.noreply.github.com> Date: Sun, 3 Sep 2023 16:24:19 +0700 Subject: [PATCH] Update hints.md .pop_back() does NOT return the last item in a vector --- exercises/concept/making-the-grade/.docs/hints.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/exercises/concept/making-the-grade/.docs/hints.md b/exercises/concept/making-the-grade/.docs/hints.md index 858a0af8..f47b1ce1 100644 --- a/exercises/concept/making-the-grade/.docs/hints.md +++ b/exercises/concept/making-the-grade/.docs/hints.md @@ -15,7 +15,8 @@ Also being familiar with the following can help with completing the tasks: ## 1. Rounding Scores - `While` loops will continue to execute until their test condition evaluates to `False`. -- `.pop_back()` will remove and return the last item in a `vector`. +- `.back()` will return the last item in a `vector`. +- `.pop_back()` will remove the last item in a `vector`. ## 2. Non-Passing Students @@ -47,4 +48,4 @@ Also being familiar with the following can help with completing the tasks: [string]: https://en.cppreference.com/w/cpp/string/basic_string [to\_string]: https://en.cppreference.com/w/cpp/string/basic_string/to_string [emplace]: https://en.cppreference.com/w/cpp/container/vector/emplace_back -[pop]: https://en.cppreference.com/w/cpp/container/vector/pop_back \ No newline at end of file +[pop]: https://en.cppreference.com/w/cpp/container/vector/pop_back