[LLVMdev] tutorial typos
Erick Tryzelaar
idadesub at users.sourceforge.net
Fri Feb 22 03:02:50 PST 2008
There were some typos in the tutorial. This patch should fix them:
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< Args;
+ std::vector<std::string> Args;
public:
PrototypeAST(const std::string &name, const
std::vector<std::string> &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<());
+ PrototypeAST *Proto = new PrototypeAST("",
std::vector<std::string>());
return new FunctionAST(Proto, E);
}
return 0;
More information about the llvm-dev
mailing list