summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2021-11-19 19:29:18 +0000
committerLinus Groh <mail@linusgroh.de>2021-11-19 19:29:18 +0000
commit2ecb47c985c8c99bfbd97ea4246cd6847cac49ff (patch)
treed5b77e02fe8dc252d899baef846f59a482fec5f9
parentd0c29c9735a4e15bdb4ccae02111a253da8b6042 (diff)
downloadserenity-2ecb47c985c8c99bfbd97ea4246cd6847cac49ff.zip
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
-rw-r--r--Userland/Libraries/LibJS/Runtime/Temporal/TimeZone.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/Temporal/TimeZone.cpp b/Userland/Libraries/LibJS/Runtime/Temporal/TimeZone.cpp
index fdeba4807f..2b4f921754 100644
--- a/Userland/Libraries/LibJS/Runtime/Temporal/TimeZone.cpp
+++ b/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();
}