소스 검색

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
Timothy Flynn 2 년 전
부모
커밋
01fc025e9d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Userland/Libraries/LibJS/Runtime/Intl/DateTimeFormatConstructor.cpp

+ 1 - 1
Userland/Libraries/LibJS/Runtime/Intl/DateTimeFormatConstructor.cpp

@@ -356,7 +356,7 @@ ThrowCompletionOr<DateTimeFormat*> initialize_date_time_format(VM& vm, DateTimeF
         date_time_format.clear_hour_cycle();
         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)) {
     if ((hour_cycle_value == ::Locale::HourCycle::H11) || (hour_cycle_value == ::Locale::HourCycle::H12)) {
         // a. Let pattern be bestFormat.[[pattern12]].
         // a. Let pattern be bestFormat.[[pattern12]].
         if (best_format->pattern12.has_value()) {
         if (best_format->pattern12.has_value()) {