From 39d2c295e7c1fd1cb17957535cbacc64f009ba37 Mon Sep 17 00:00:00 2001 From: Kalrnlo <62822174+kalrnlo@users.noreply.github.com> Date: Mon, 22 Jul 2024 18:36:17 -0400 Subject: [PATCH] Fix misspelling in parser.cpp (#1330) Fixes the mispelling of instead --- Ast/src/Parser.cpp | 8 ++++---- tests/Parser.test.cpp | 22 +++++++++++----------- 2 files changed, 15 insertions(+), 15 deletions(-) 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