Skip to content

Commit

Permalink
Keep error text consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
AdRiley committed Feb 9, 2024
1 parent 1091260 commit 68552e3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import project.Data.Filter_Condition.Filter_Condition
import project.Data.Json.JS_Object
import project.Data.Numbers.Integer
import project.Data.Pair.Pair
import project.Data.Range.Range
import project.Data.Text.Text
import project.Data.Time.Date.Date
import project.Data.Time.Date_Period.Date_Period
Expand Down Expand Up @@ -487,7 +488,7 @@ type Date_Range
into a new date.
- if_empty: Value returned if the range is empty.
reduce : (Date -> Date -> Date) -> Any -> Any
reduce self function ~if_empty=(Error.throw (Empty_Error.Error Date_Range)) =
reduce self function ~if_empty=(Error.throw (Empty_Error.Error Range)) =
case self.length of
0 -> if_empty
1 -> self.start
Expand Down

0 comments on commit 68552e3

Please sign in to comment.