Sfoglia il codice sorgente

[ASTImporter][NFC] Fix typo in user docs

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@373894 91177308-0d34-0410-b5e6-96231b3b80d8
Gabor Marton 5 anni fa
parent
commit
bba9a63012
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      docs/LibASTImporter.rst

+ 1 - 1
docs/LibASTImporter.rst

@@ -106,7 +106,7 @@ Next, we define a matcher to match ``MyClass`` in the "from" context:
 
 .. code-block:: cpp
 
-  auto Matcher = cxxRecordDecl(hasName("C"));
+  auto Matcher = cxxRecordDecl(hasName("MyClass"));
   auto *From = getFirstDecl<CXXRecordDecl>(Matcher, FromUnit);
 
 Now we create the Importer and do the import: