aboutsummaryrefslogtreecommitdiffstats
path: root/docs/tutorial
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-02-22 17:09:39 +0000
committerChris Lattner <sabre@nondot.org>2008-02-22 17:09:39 +0000
commit5ea8ef8985d5e607ff29b171d7e69359a2009a9d (patch)
treebe5350a83eba4381c4b8db486db062f147045065 /docs/tutorial
parent602d1c51e055efd56b284a2ba41083ff38c337bc (diff)
downloadexternal_llvm-5ea8ef8985d5e607ff29b171d7e69359a2009a9d.zip
external_llvm-5ea8ef8985d5e607ff29b171d7e69359a2009a9d.tar.gz
external_llvm-5ea8ef8985d5e607ff29b171d7e69359a2009a9d.tar.bz2
fix some bugs in tutorial, patch by Erick Tryzelaar
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47481 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/tutorial')
-rw-r--r--docs/tutorial/LangImpl2.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/tutorial/LangImpl2.html b/docs/tutorial/LangImpl2.html
index b7f968b..50619e0 100644
--- a/docs/tutorial/LangImpl2.html
+++ b/docs/tutorial/LangImpl2.html
@@ -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;