mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-04 08:36:12 +00:00
LibJS: Fix spec comment in Temporal::PlainDate::balance_iso_date()
This matches the text of the spec, and is more correct since the
variable is being updated, not defined it.
See: 5ab1822
---
I also changed `test_year += 1` to `test_year++` for consistency with
step 11.c that has the same description.
This commit is contained in:
parent
783e27f8f9
commit
dc03529ffd
Notes:
sideshowbarker
2024-07-17 21:53:21 +09:00
Author: https://github.com/emanuele6
Commit: dc03529ffd
Pull-request: https://github.com/SerenityOS/serenity/pull/11515
Reviewed-by: https://github.com/linusg ✅
1 changed files with 2 additions and 2 deletions
|
@ -440,8 +440,8 @@ ISODate balance_iso_date(double year_, double month_, double day)
|
|||
|
||||
// 9. NOTE: To deal with numbers of days greater than the number of days in a year, the following section adds years and subtracts days until the number of days is less than 366 or 365.
|
||||
|
||||
// 10. Let testYear be testYear + 1.
|
||||
test_year += 1;
|
||||
// 10. Set testYear to testYear + 1.
|
||||
test_year++;
|
||||
|
||||
// 11. Repeat, while day > ! ISODaysInYear(testYear),
|
||||
while (day > iso_days_in_year(test_year)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue