lang: parser: Typo fix

This commit is contained in:
James Shubin
2025-01-04 20:55:41 -05:00
parent e6d614f4dd
commit 553172992f

View File

@@ -1486,7 +1486,7 @@ func cast(y yyLexer) *lexParseAST {
return x.(*lexParseAST)
}
// postLast pulls out the "last token" and does a pos with that. This is a hack!
// posLast pulls out the "last token" and does a pos with that. This is a hack!
func posLast(y yyLexer, dollars []yySymType) {
// pick the last token in the set matched by the parser
pos(y, dollars[len(dollars)-1]) // our pos