Skip to content

Commit

Permalink
Fix typo in error message
Browse files Browse the repository at this point in the history
  • Loading branch information
justingrant authored and ptomato committed Jul 8, 2021
1 parent bd35175 commit 6486fe7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/zoneddatetime.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ export class ZonedDateTime {
const endNs = ES.AddZonedDateTime(instantStart, timeZone, calendar, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0);
const dayLengthNs = endNs.subtract(GetSlot(instantStart, EPOCHNANOSECONDS));
if (dayLengthNs.isZero()) {
throw new RangeError('can not round a ZonedDateTime in a calendar with zero-length days');
throw new RangeError('cannot round a ZonedDateTime in a calendar with zero-length days');
}
({ year, month, day, hour, minute, second, millisecond, microsecond, nanosecond } = ES.RoundISODateTime(
year,
Expand Down

0 comments on commit 6486fe7

Please sign in to comment.