diff --git a/docs/LibTooling.rst b/docs/LibTooling.rst
index 963de603c550f496e5531c8673f1152ad40620db..63d38b519ad7361cfe7de3f23e235574188efd56 100644
--- a/docs/LibTooling.rst
+++ b/docs/LibTooling.rst
@@ -122,7 +122,7 @@ tool is also checked into the clang tree at
 
   // Apply a custom category to all command-line options so that they are the
   // only ones displayed.
-  cl::MyToolCategory("my-tool options");
+  cl::OptionCategory MyToolCategory("my-tool options");
 
   // CommonOptionsParser declares HelpMessage with a description of the common
   // command-line options related to the compilation database and input files.