diff --git a/exercises/practice/reverse-string/.approaches/introduction.md b/exercises/practice/reverse-string/.approaches/introduction.md index 2592c85d..a0afe318 100644 --- a/exercises/practice/reverse-string/.approaches/introduction.md +++ b/exercises/practice/reverse-string/.approaches/introduction.md @@ -169,7 +169,7 @@ std::string reverse_string(std::string_view original) std::string result; // pass it to the recursive helper function - helper(original, result); + recursive_helper(original, result); // result now contains a reversed version of the string return result; diff --git a/exercises/practice/reverse-string/.approaches/linear-recursion/content.md b/exercises/practice/reverse-string/.approaches/linear-recursion/content.md index 69d9ffce..6de6cd6d 100644 --- a/exercises/practice/reverse-string/.approaches/linear-recursion/content.md +++ b/exercises/practice/reverse-string/.approaches/linear-recursion/content.md @@ -42,7 +42,7 @@ void recursive_helper(std::string_view input, std::string& output) std::string reverse_string(std::string_view original) { std::string result; - helper(original, result); + recursive_helper(original, result); return result; }