Skip to content

Commit 6486fe7

Browse files
justingrantptomato
authored andcommitted
Fix typo in error message
1 parent bd35175 commit 6486fe7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/zoneddatetime.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ export class ZonedDateTime {
645645
const endNs = ES.AddZonedDateTime(instantStart, timeZone, calendar, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0);
646646
const dayLengthNs = endNs.subtract(GetSlot(instantStart, EPOCHNANOSECONDS));
647647
if (dayLengthNs.isZero()) {
648-
throw new RangeError('can not round a ZonedDateTime in a calendar with zero-length days');
648+
throw new RangeError('cannot round a ZonedDateTime in a calendar with zero-length days');
649649
}
650650
({ year, month, day, hour, minute, second, millisecond, microsecond, nanosecond } = ES.RoundISODateTime(
651651
year,

0 commit comments

Comments
 (0)