From 139637a8b9fb676996b5249577a254654a569bd0 Mon Sep 17 00:00:00 2001 From: Luca Morgado Date: Thu, 3 Oct 2024 10:06:03 +0200 Subject: [PATCH] fixed typo --- parser/Parser_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parser/Parser_test.go b/parser/Parser_test.go index 002b194..6083691 100644 --- a/parser/Parser_test.go +++ b/parser/Parser_test.go @@ -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()