From 398f1ce2a0892c05888cdf44f7575a001ea279be Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Sat, 12 Apr 2025 07:36:10 -0400 Subject: [PATCH] LibIDL: Fix typos in IDL error messages --- Libraries/LibIDL/IDLParser.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Libraries/LibIDL/IDLParser.cpp b/Libraries/LibIDL/IDLParser.cpp index b3383751a11..1100b3c1739 100644 --- a/Libraries/LibIDL/IDLParser.cpp +++ b/Libraries/LibIDL/IDLParser.cpp @@ -517,7 +517,7 @@ void Parser::parse_iterable(Interface& interface) auto first_type = parse_type(); if (lexer.next_is(',')) { if (interface.supports_indexed_properties()) - report_parsing_error("Interfaces with a pair iterator must not supported indexed properties."sv, filename, input, lexer.tell()); + report_parsing_error("Interfaces with a pair iterator must not support indexed properties."sv, filename, input, lexer.tell()); assert_specific(','); consume_whitespace(); @@ -525,7 +525,7 @@ void Parser::parse_iterable(Interface& interface) interface.pair_iterator_types = Tuple { move(first_type), move(second_type) }; } else { if (!interface.supports_indexed_properties()) - report_parsing_error("Interfaces with a value iterator must supported indexed properties."sv, filename, input, lexer.tell()); + report_parsing_error("Interfaces with a value iterator must support indexed properties."sv, filename, input, lexer.tell()); interface.value_iterator_type = move(first_type); } @@ -540,7 +540,7 @@ void Parser::parse_iterable(Interface& interface) void Parser::parse_setlike(Interface& interface, bool is_readonly) { if (interface.supports_indexed_properties()) - report_parsing_error("Interfaces with a setlike declaration must not supported indexed properties."sv, filename, input, lexer.tell()); + report_parsing_error("Interfaces with a setlike declaration must not support indexed properties."sv, filename, input, lexer.tell()); if (interface.value_iterator_type.has_value() || interface.pair_iterator_types.has_value()) report_parsing_error("Interfaces with a setlike declaration must not must not be iterable."sv, filename, input, lexer.tell());