Explorar o código

LibJS: Fix spelling mistake in one of the syntax error descriptions

Andreas Kling %!s(int64=4) %!d(string=hai) anos
pai
achega
527c639c1f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Userland/Libraries/LibJS/Parser.cpp

+ 1 - 1
Userland/Libraries/LibJS/Parser.cpp

@@ -1667,7 +1667,7 @@ NonnullRefPtr<VariableDeclaration> Parser::parse_variable_declaration(bool for_l
         }
 
         if (target.has<Empty>()) {
-            syntax_error("Expected an identifer or a binding pattern");
+            syntax_error("Expected an identifier or a binding pattern");
             if (match(TokenType::Comma)) {
                 consume();
                 continue;