diff --git a/Ast/src/Parser.cpp b/Ast/src/Parser.cpp index 87af53cb..bfe52ddc 100644 --- a/Ast/src/Parser.cpp +++ b/Ast/src/Parser.cpp @@ -797,7 +797,7 @@ AstStat* Parser::parseAttributeStat() } default: return reportStatError(lexer.current().location, {}, {}, - "Expected 'function', 'local function', 'declare function' or a function type declaration after attribute, but got %s intead", + "Expected 'function', 'local function', 'declare function' or a function type declaration after attribute, but got %s instead", lexer.current().toString().c_str()); } } @@ -836,7 +836,7 @@ AstStat* Parser::parseLocal(const AstArray& attributes) { if (FFlag::LuauAttributeSyntax && attributes.size != 0) { - return reportStatError(lexer.current().location, {}, {}, "Expected 'function' after local declaration with attribute, but got %s intead", + return reportStatError(lexer.current().location, {}, {}, "Expected 'function' after local declaration with attribute, but got %s instead", lexer.current().toString().c_str()); } @@ -981,7 +981,7 @@ AstStat* Parser::parseDeclaration(const Location& start, const AstArray