diff --git a/src/data/roadmaps/cpp/content/111-templates/101-template-specialization/index.md b/src/data/roadmaps/cpp/content/111-templates/101-template-specialization/index.md index 65a274840..041ab1827 100644 --- a/src/data/roadmaps/cpp/content/111-templates/101-template-specialization/index.md +++ b/src/data/roadmaps/cpp/content/111-templates/101-template-specialization/index.md @@ -23,7 +23,7 @@ void printData(const T& data) { } template <> -void printData(const char*& data) { +void printData(const char* const & data) { std::cout << "Specialized template for const char*: " << data << std::endl; } @@ -81,4 +81,4 @@ int main() { } ``` -In this example, the `MyPair` template class is partially specialized to provide a different behavior when the second template parameter is of type `int`. \ No newline at end of file +In this example, the `MyPair` template class is partially specialized to provide a different behavior when the second template parameter is of type `int`.