Skip to content

Commit

Permalink
fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
mkarten committed Oct 3, 2024
1 parent eaa97fa commit 139637a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parser/Parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1588,7 +1588,7 @@ func TestParser_ParseAnonymousFunctionExpr(t *testing.T) {
t.Errorf("ParseAnonymousFunctionExpr() raised an error when it should not")
}
ok = false
// function declaration with structs as parameters and field access in the body
// anonymous function expression with structs as parameters and field access in the body
resetWithTokens(&par, lexer.Lexer("function(a : Test, b : Test)( string) {return a.test + b.test;}"))
par.VarTypes["Test"] = "struct"
par.ParseAnonymousFunctionExpr()
Expand Down

0 comments on commit 139637a

Please sign in to comment.