Skip to content

Commit

Permalink
docs: until returns Inverval or DateTime conditionally
Browse files Browse the repository at this point in the history
  • Loading branch information
h4l-yup committed Mar 29, 2024
1 parent cafc4ee commit 63b52dc
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 @@ -2128,7 +2128,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 63b52dc

Please sign in to comment.