aboutsummaryrefslogtreecommitdiff
path: root/src/parser.cpp
diff options
context:
space:
mode:
authorJosh Wolfe <thejoshwolfe@gmail.com>2015-12-09 01:07:27 -0700
committerJosh Wolfe <thejoshwolfe@gmail.com>2015-12-09 01:08:18 -0700
commit6a48c007a62bca5ba712e92b1f1e32031e43717c (patch)
tree4774f54a2c41c285221bc2aac4a84264a1cf8adf /src/parser.cpp
parentdfda85e870df1b0620c418940db3b946fdd3d620 (diff)
downloadzig-6a48c007a62bca5ba712e92b1f1e32031e43717c.tar.gz
zig-6a48c007a62bca5ba712e92b1f1e32031e43717c.zip
fix typo
Diffstat (limited to 'src/parser.cpp')
-rw-r--r--src/parser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parser.cpp b/src/parser.cpp
index 0ef3e6664b..6c8a54ad9e 100644
--- a/src/parser.cpp
+++ b/src/parser.cpp
@@ -517,7 +517,7 @@ static AstNode *ast_parse_type(ParseContext *pc, int token_index, int *new_token
}
/*
-ParamDecl : token(Symbol) token(Colon) Type | token(Ellipse)
+ParamDecl : token(Symbol) token(Colon) Type | token(Ellipsis)
*/
static AstNode *ast_parse_param_decl(ParseContext *pc, int token_index, int *new_token_index) {
Token *param_name = &pc->tokens->at(token_index);
@@ -536,7 +536,7 @@ static AstNode *ast_parse_param_decl(ParseContext *pc, int token_index, int *new
*new_token_index = token_index;
return node;
- } else if (param_name->id == TokenIdEllipse) {
+ } else if (param_name->id == TokenIdEllipsis) {
*new_token_index = token_index;
return nullptr;
} else {