Skip to content

Commit

Permalink
Editorial: Allow returning UNSET from DifferenceZonedDateTimeWithRoun…
Browse files Browse the repository at this point in the history
…ding

When calling DifferenceZonedDateTimeWithRounding with smallestUnit and
largestUnit not the same unit, it's possible to hit the NudgeToZonedTime
path, where [[Total]] is UNSET. This should be reflected in the structured
header's return type.

Closes: #2879
  • Loading branch information
ptomato authored and Ms2ger committed Jun 14, 2024
1 parent 6b0c68e commit 012fc7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/zoneddatetime.html
Original file line number Diff line number Diff line change
Expand Up @@ -1394,7 +1394,7 @@ <h1>
_roundingIncrement_: a positive integer,
_smallestUnit_: a String,
_roundingMode_: a String,
): either a normal completion containing a Record with fields [[DurationRecord]] (a Duration Record) and [[Total]] (a mathematical value), or a throw completion
): either a normal completion containing a Record with fields [[DurationRecord]] (a Duration Record) and [[Total]] (a mathematical value or ~unset~), or a throw completion
</h1>
<dl class="header">
<dt>description</dt>
Expand Down

0 comments on commit 012fc7e

Please sign in to comment.