Skip to content

Commit

Permalink
Fix #6010 documenting subtracting time interval (#6012)
Browse files Browse the repository at this point in the history
  • Loading branch information
euantorano authored and Araq committed Jun 22, 2017
1 parent f682bb6 commit 3a2ab81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pure/times.nim
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ proc `-=`*(t: var Time, ti: TimeInterval) =
t = toTime(getLocalTime(t) - ti)

proc `-`*(t: Time, ti: TimeInterval): Time =
## adds the interval `ti` to Time `t`
## subtracts the interval `ti` from Time `t`
##
## ``echo getTime() - 1.day``
result = toTime(getLocalTime(t) - ti)
Expand Down

0 comments on commit 3a2ab81

Please sign in to comment.