Skip to content

Commit

Permalink
docs: until returns Inverval or DateTime conditionally (#1613)
Browse files Browse the repository at this point in the history
  • Loading branch information
h4l-yup authored Aug 3, 2024
1 parent 419ad04 commit f50a7fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/datetime.js
Original file line number Diff line number Diff line change
Expand Up @@ -2137,7 +2137,7 @@ export default class DateTime {
/**
* Return an Interval spanning between this DateTime and another DateTime
* @param {DateTime} otherDateTime - the other end point of the Interval
* @return {Interval}
* @return {Interval|DateTime}
*/
until(otherDateTime) {
return this.isValid ? Interval.fromDateTimes(this, otherDateTime) : this;
Expand Down

0 comments on commit f50a7fb

Please sign in to comment.