diff --git a/docs/examples/htmltitle.cpp b/docs/examples/htmltitle.cpp
index 55a7935acc05695e97e85c775109379a6586bf44..ab89bb6a7813935d8310db719351e6d5f7dca669 100644
--- a/docs/examples/htmltitle.cpp
+++ b/docs/examples/htmltitle.cpp
@@ -25,7 +25,7 @@
//
// GNU C++ compile command line suggestion (edit paths accordingly):
//
-// g++ -Wall -I/opt/curl/include -I/opt/libxml/include/libxml2 htmltitle.cc \
+// g++ -Wall -I/opt/curl/include -I/opt/libxml/include/libxml2 htmltitle.cpp \
// -o htmltitle -L/opt/curl/lib -L/opt/libxml/lib -lcurl -lxml2
#include