Skip to content

Commit ae79529

Browse files
Further clarification
1 parent 78c1544 commit ae79529

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Data/Date.purs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ weekday = unsafePartial \(Date y m d) ->
9090
in if n == 0 then fromJust (toEnum 7) else fromJust (toEnum n)
9191

9292
-- | Adjusts a date with a Duration in days. The number of days must
93-
-- | fall within the valid range for an `Int` type otherwise `Nothing`
94-
-- | is returned.
93+
-- | already be an integer and fall within the valid range of values
94+
-- | for the Int type.
9595
adjust :: Days -> Date -> Maybe Date
9696
adjust (Days n) date = fromNumber n >>= flip adj date
9797
where

0 commit comments

Comments
 (0)