Fix Template Specialization Index CodeBlock for const in printData (#4446)

pull/4408/head^2
Andret Carpizo 1 year ago committed by GitHub
parent 8ca9f976cd
commit 8903f11f02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/data/roadmaps/cpp/content/111-templates/101-template-specialization/index.md

@ -23,7 +23,7 @@ void printData(const T& data) {
} }
template <> template <>
void printData(const char*& data) { void printData(const char* const & data) {
std::cout << "Specialized template for const char*: " << data << std::endl; std::cout << "Specialized template for const char*: " << data << std::endl;
} }

Loading…
Cancel
Save