From 01fc025e9def1303d949da106b1a7317e642b4c1 Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Thu, 15 Dec 2022 10:56:03 -0500 Subject: [PATCH] LibJS: Fix a typo in an Intl.DateTimeFormat spec comment This is an editorial change in the ECMA-402 spec. See: https://github.com/tc39/ecma402/commit/078bea0 --- .../Libraries/LibJS/Runtime/Intl/DateTimeFormatConstructor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibJS/Runtime/Intl/DateTimeFormatConstructor.cpp b/Userland/Libraries/LibJS/Runtime/Intl/DateTimeFormatConstructor.cpp index 9422e37f9c..2dab5e6d9f 100644 --- a/Userland/Libraries/LibJS/Runtime/Intl/DateTimeFormatConstructor.cpp +++ b/Userland/Libraries/LibJS/Runtime/Intl/DateTimeFormatConstructor.cpp @@ -356,7 +356,7 @@ ThrowCompletionOr initialize_date_time_format(VM& vm, DateTimeF date_time_format.clear_hour_cycle(); } - // 46. If dateTimeformat.[[HourCycle]] is "h11" or "h12", then + // 46. If dateTimeFormat.[[HourCycle]] is "h11" or "h12", then if ((hour_cycle_value == ::Locale::HourCycle::H11) || (hour_cycle_value == ::Locale::HourCycle::H12)) { // a. Let pattern be bestFormat.[[pattern12]]. if (best_format->pattern12.has_value()) {