fix some bugs in tutorial, patch by Erick Tryzelaar
authorChris Lattner <sabre@nondot.org>
Fri, 22 Feb 2008 17:09:39 +0000 (17:09 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 22 Feb 2008 17:09:39 +0000 (17:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47481 91177308-0d34-0410-b5e6-96231b3b80d8

docs/tutorial/LangImpl2.html

index b7f968b0daa2b7100797a0e5b55fe50818be1a84..50619e095502382959262f5dce1ecb24ae8b2174 100644 (file)
@@ -933,7 +933,7 @@ public:
 /// of arguments the function takes).
 class PrototypeAST {
   std::string Name;
-  std::vector&lt; Args;
+  std::vector&lt;std::string&gt; Args;
 public:
   PrototypeAST(const std::string &amp;name, const std::vector&lt;std::string&gt; &amp;args)
     : Name(name), Args(args) {}
@@ -1132,7 +1132,7 @@ static FunctionAST *ParseDefinition() {
 static FunctionAST *ParseTopLevelExpr() {
   if (ExprAST *E = ParseExpression()) {
     // Make an anonymous proto.
-    PrototypeAST *Proto = new PrototypeAST("", std::vector&lt;());
+    PrototypeAST *Proto = new PrototypeAST("", std::vector&lt;std::string&gt;());
     return new FunctionAST(Proto, E);
   }
   return 0;