Browse Source

LibJS: Update spec comments in format_time_zone_offset_string()

This is an editorial change in the Temporal spec.

See: https://github.com/tc39/proposal-temporal/commit/60c753a
Linus Groh 3 năm trước cách đây
mục cha
commit
2ecb47c985
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      Userland/Libraries/LibJS/Runtime/Temporal/TimeZone.cpp

+ 3 - 1
Userland/Libraries/LibJS/Runtime/Temporal/TimeZone.cpp

@@ -343,8 +343,10 @@ String format_time_zone_offset_string(double offset_nanoseconds)
         // a. Let post be the string-concatenation of the code unit 0x003A (COLON) and s.
         builder.appendff(":{:02}", seconds);
     }
+    // 13. Else,
+    //    a. Let post be the empty String.
 
-    // 13. Return the string-concatenation of sign, h, the code unit 0x003A (COLON), m, and post.
+    // 14. Return the string-concatenation of sign, h, the code unit 0x003A (COLON), m, and post.
     return builder.to_string();
 }